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
2 answers

Cross-Compiling Armadillo Linear Algebra Library

I enjoy using the Armadillo Linear Algebra Library. It becomes extremely nice when porting octave .m files over to C++, especially when you have to use the eigen methods. However I ran into issues when I had to take my program from my native…
Matt
  • 653
  • 1
  • 8
  • 20
7
votes
1 answer

NumPy and SciPy. Static vs Dynamic loading

TLDR: Can I use static ATLAS/LAPACK libraries with NumPy & SciPy? Background: After building ATLAS with LAPACK with the following: wget http://sourceforge.net/projects/math-atlas/files/Stable/3.10.1/atlas3.10.1.tar.bz2/download wget…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
7
votes
3 answers

Build shared libraries in ATLAS

I've read the entire ATLAS installation guide, and it says all you need to build shared (.so) libraries is to pass the --shared flag to the configure script. However, when I build, the only .so files that appear in my lib folder are libsatlas.so and…
Nick
  • 2,821
  • 5
  • 30
  • 35
6
votes
4 answers

Sparse matrix linear and nonlinear equation solver

I am looking for a C library to solve linear and, if possible, nonlinear matrix equation of the form Ax = b. It is important to me, that the packages are not too big and free of charge. Speed does not matter as much as simplicity and the sparse…
janoliver
  • 7,744
  • 14
  • 60
  • 103
6
votes
1 answer

Statically linking against LAPACK

I'm attempting to do a release of some software and am currently working through a script for the build process. I'm stuck on something I never thought I would be, statically linking LAPACK on x86_64 linux. During configuration…
nlucaroni
  • 47,556
  • 6
  • 64
  • 86
6
votes
2 answers

macOS Monterey - Install Scipy Error "No lapack/blas resources found"

I have installed pyenv on Mac using brew install pyenv. I want to run a python project which requires installation of scipy==1.5.4. I tried installing it using the command pip3 install scipy==1.5.4 but I got an error No lapack/blas resources…
Lopez
  • 461
  • 5
  • 19
6
votes
1 answer

Detect BLAS/LAPACK vendors using CMake

So my code wants to include different header files when occurs to different BLAS/LAPACK vendors. Are there any predefined macros or something like that make me check it?
xis
  • 24,330
  • 9
  • 43
  • 59
6
votes
2 answers

Calling GSL functions via NativeCall in Raku throws error

Problem I am trying to call cumulative distribution function of chisq function in GSL from raku. This is my raku script chisq.raku #Calling gsl_cdf_chisq-P function in GSL from raku use NativeCall; sub gsl_cdf_chisq_P(num64, num64) returns num64…
Suman Khanal
  • 3,079
  • 1
  • 17
  • 29
6
votes
0 answers

Fastest code for Hadamard product

Having two complex arrays of dimension 2 I want to calculate a point wise multiplication (Hadamard product): complex(8) :: A(N,N), B(N,N), C(N,N) ... do j = 1, N do i = 1, N C(i,j) = A(i,j)*B(i,j) enddo enddo Is there any BLAS routine to…
thyme
  • 388
  • 5
  • 18
6
votes
2 answers

Can numpy diagonalise a skew-symmetric matrix with real arithmetic?

Any skew-symmetric matrix (A^T = -A) can be turned into a Hermitian matrix (iA) and diagonalised with complex numbers. But it is also possible to bring it into block-diagonal form with a special orthogonal transformation and find its eigevalues…
RGWinston
  • 405
  • 4
  • 11
6
votes
3 answers

understanding Lapack_row_major and Lapack_col_major with lda

I have three questions regarding lapack_row_major and lapack_col_major: 1) Is my understanding correct that if A = [1,2,3,4,5,6] with dimensions 2*3 then the lapack_row_major results in [ [1,2,3],[4,5,6] ], while lapack_col_major results in […
Mina
  • 113
  • 1
  • 6
6
votes
2 answers

Bignum, Linear Algebra and Digital Signal Processing on iPhone OS (iOS 4)

I think I've found some gems in the iPhone OS (iOS 4). I found that there're 128-bit, 256-bit, 512-bit and 1024-bit integer data types, provided by the Accelerate Framework. There're also Apple's implementation of Basic Linear Algebra Subprograms…
6
votes
1 answer

LAPACK giving me incorrect eigenvalues

I am using DSYEV and DSYEVD from the LAPACK library to find eigenvalues and eigenvectors (Compilation syntax: gfortran -llapack ). However, I find wrong eigenvalues (-0.44,0.35,0.88) for a particular matrix. What's going wrong? One can easily see…
hbaromega
  • 2,317
  • 2
  • 24
  • 32
6
votes
3 answers

UnsafeMutablePointer from String in Swift

I'm using the dgeev algorithm from the LAPACK implementation in the Accelerate framework to calculate eigenvectors and eigenvalues of a matrix. Sadly the LAPACK functions are not described in the Apple Documentation with a mere link to…
Youssef Moawad
  • 2,846
  • 5
  • 28
  • 50
6
votes
1 answer

F# 1.9.9.9 and lapack

Can anyone help me with example on using lapack with latest f#? Or it is not recommended for now? I searched and only find http://fdatamining.blogspot.com/ but was not able to get FSharp.PowerPack.Math.Providers.dll compiled. EDIT: @Yin, Thanks for…
ahala
  • 61
  • 1