Questions tagged [lapack]

LAPACK (Linear Algebra PACKage) is a software library package to solve linear algebra equations. LAPACK is written in Fortran 90.

LAPACK provides routines for solving systems of simultaneous linear equations, least-squares solutions of linear systems of equations, eigenvalue problems, and singular value problems. LAPACK is written in Fortran 90.

1025 questions
7
votes
1 answer

Why would cblas_dgemm and cblas_sgemm have different pointer types in a function pointer array?

I have a function pointer array which I use to call the appropriate cblas_xgemm (e.g., cblas_dgemm or cblas_sgemm, etc., from ATLAS/CBLAS). This works great when I tell it to use cblas_dgemm by function pointer; dgemm gets called with the…
Translunar
  • 3,739
  • 33
  • 55
7
votes
2 answers

Accelerate framework uses only one core on Mac M1

The following C program (dgesv_ex.c) #include #include /* DGESV prototype */ extern void dgesv( int* n, int* nrhs, double* a, int* lda, int* ipiv, double* b, int* ldb, int* info ); /* Main program */ int main()…
Stéphane Mottelet
  • 2,853
  • 1
  • 9
  • 26
7
votes
1 answer

Difference between dtrtrs and dtrsm

I am looking for some triangular solvers, and I have come across two solvers. One in BLAS: dtrsm and another in LAPACK: dtrtrs. From the looks of it both seem to have common functionality, with dtrsm having a little bit more functionality (scaling…
Pavan Yalamanchili
  • 12,021
  • 2
  • 35
  • 55
7
votes
1 answer

Computing the reciprocal condition number with lapack (i.e. rcond(x))

I wish to do exactly what rcond does in MATLAB/Octave using LAPACK from C. The MATLAB manual tells me dgecon is used, and that is uses a 1-based norm. I wrote a simple test program for an extremely simple case; [1,1; 1,0] For this input matlab and…
Mikael Öhman
  • 2,294
  • 15
  • 21
7
votes
3 answers

How do I install C packages on windows

I have to use LU decompostion to fit a simple model to some data (simulated) in C. An example of what I need to do is here: However, I'm stuck with a more basic problem: how do I install packages in C and call them in my code? I'm new in C and I'm…
Manoel Galdino
  • 2,376
  • 6
  • 27
  • 40
7
votes
4 answers

compute determinant from LU decomposition in lapack

Lapack, most probably, doesn't have any routine for computing determinant. However we can compute it using either LU, QR or SVD decomposition. I prefer to use LU decomposition. Now lapack uses some dgetrf subroutine to factorize a matrix A into PLU…
user402940
  • 315
  • 2
  • 10
7
votes
4 answers

Tutorial for installing numpy with OpenBLAS on Windows

Please, I do need a light here. I want to install numpy using a good BLAS/LAPACK lib on Windows, but absolutely no page explains the process well enough. It seems OpenBLAS is a good and fast option. The goal is to use "theano" with "keras", and…
Daniel Möller
  • 84,878
  • 18
  • 192
  • 214
7
votes
1 answer

LAPACK/LAPACKE with C++ on LINUX --- Compiling, Linking and Running?

Intro: I've developed an application in C++ that utilizes LAPACK(LAPACKE) and MPI, all on Windows. Works OK in Windows (compiling and linking are taken care of through Code::Blocks IDE), but the execution is way too slow. Hence, I want to migrate…
Boki
  • 193
  • 1
  • 3
  • 15
7
votes
4 answers

numpy.disutils.system_info.NotFoundError: no lapack/blas resources found

Problem: Linking numpy to correct Linear Algebra libraries. Process is so complicated that I might be looking for the solution 6th time and I have no idea whats going wrong. I am on Ubuntu 12.04.5. I reinstalled blas and lapack and then reinstalled…
pg2455
  • 5,039
  • 14
  • 51
  • 78
7
votes
2 answers

Are the LAPACK routines thread safe?

I am a novice using the LAPACK routines, so I don't deeply know them, and I want to use them in parallelized loops (openmp). I use Ubuntu 14.04LTS and have LAPACK installed using my package manager. The version installed is: liblapack3 …
Antonio Serrano
  • 385
  • 2
  • 15
7
votes
4 answers

What is the easiest way to install numpy with LAPACK/BLAS?

I'm on an Ubuntu 14.04. I would have expected doing: sudo apt-get install python-numpy would've worked but it isn't the case... The way I tried to check is by doing locate blas and found nothing that seemed relevant. I would like a solution that…
evan54
  • 3,585
  • 5
  • 34
  • 61
7
votes
2 answers

how to compile lapack so that it can be used correctly during installation of octave?

I'm trying to install the latest octave 3.8.1 from source in a cluster running redhat+IBM LSF. I don't have write access to anywhere else except my own home dir, that's why I have to install octave from source. The blas and lapack provided by the…
user2384994
  • 1,759
  • 4
  • 24
  • 29
7
votes
1 answer

Correct way to point to ATLAS/BLAS/LAPACK libraries for numpy build?

I'm building numpy from source on CentOS 6.5 with no root access (python -V=2.7.6). I have the latest numpy source from git. I cannot for the life of me get numpy to acknowledge atlas libs. I have: ls -1…
Matt Hancock
  • 3,870
  • 4
  • 30
  • 44
7
votes
5 answers

R: locpoly is incorrectly returning NaN

Running the following code gives me a NaN: library(KernSmooth) x <- c(5.84155992364115, 1.55292112974119, 0.0349665318792623, 3.93053647398094, 3.42790577684633, 2.9715553006801, 0.837108410045353, 2.872476865277, 3.89232548092257,…
Xu Wang
  • 10,199
  • 6
  • 44
  • 78
7
votes
1 answer

What does the Parameter superb in LAPACKE_dgesvd(..) mean?

Putting up questions like this one raises a bad conscience... nevertheless I find it surprisingly difficult to google this one. I am experimenting with lapack_int LAPACKE_dgesvd( int matrix_order, char jobu, char jobvt, lapack_int m, lapack_int…
Markus-Hermann
  • 789
  • 11
  • 24