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
-1
votes
1 answer

double free or corruption (out) on ipiv magma_getrs_gpu

I have the following code: magma_int_t *h_ipiv; magma_imalloc_cpu( &h_ipiv, k); for (i=0;i
eldev09
  • 39
  • 8
-1
votes
1 answer

Segmentation fault when using dpbtrf

I try to use the LAPACK routine dpbtrf (Documentaton) in c++ but always get a segmentation fault. I am not sure how to pass the matrix LAPACKE_dpbtrf and tried to replicate it from the few examples I found without success. How to make the code below…
Alex
  • 4,925
  • 2
  • 32
  • 48
-1
votes
1 answer

Solve general eigenproblem with mathnet

I found a very promissing package (MatNet) to work with in my structural engineering program. However, while MathNet relies heavily on MKL from Intel, I cannot see how I can solve a general eigenproblem to find the structure's…
Erik
  • 894
  • 1
  • 8
  • 25
-1
votes
1 answer

Armadillo getting undefined reference for shared lapack library

I have compiled BLAS and LAPACK library using gcc in ubuntu 18.4 LTS. The static libraries are working well with Armadillo headers but the shared lapack library is getting error with 28 undefined references of blas functions which I presume are…
-1
votes
1 answer

MATLAB faster than LAPACK?

Edit: I found that the MATLAB processor time is about the same as the C++ processor time, but still can't find a way to help the wall clock time of the C++ program. (About the same as the processor time printed below) This might be an obvious…
Cory Nezin
  • 1,551
  • 10
  • 22
-1
votes
2 answers

C++/LapackE code compiling fine on Windows, but the identical code fails compilation on Linux

The code written in C++ with LapackE and MPI libraries compiles and runs great on Windows where I use GNU C++ 4.9.2. Migrating that code to Linux (CentOS) server fails to compile! The GNU C++ on Linux machine is 4.4.7. I used identical LapackE…
Boki
  • 193
  • 1
  • 3
  • 15
-1
votes
2 answers

dgtsv - LAPACK not returning answer

I'm trying to solve a simple tridiagonal system of equations using LAPACK library. The code below explains it all. I'm getting an array full of zeros (initialized ones), not the correct answer. I checked the inputs, tried to compile with two…
LM_O
  • 131
  • 1
  • 10
-1
votes
2 answers

Compiling Blas on ubuntu

I'm trying to run the testblas.c example from this website: http://www.seehuhn.de/pages/linear#installation I installed liblapack3 and libblas-common, but I couldn't find anything for atlas in the repositories. Compiling it will result in: gcc…
Stein
  • 3,179
  • 5
  • 27
  • 51
-1
votes
1 answer

Undefined reference to symbol 'exp@@GLIBC_2.2.5'

I am trying to compile Bavieca (for a few weeks now tbh), at the same time becoming accustomed with compiling in Linux, learning about static and dynamic libraries etc, so I'm a little new to this area. Bavieca depends on the BLAS/LAPACK libraries.…
Ata3ias
  • 115
  • 1
  • 11
-1
votes
2 answers

Lapack set internal FORTRAN parameter in C

IF you look at this link, you'll see that MAXITR is an internal parameter of the dbsqr FORTRAN LAPACK routine. I have found this link, to call FORTRAN functions in C, but how do I set MAXITR? It doesn't seem to be a parameter. Is there any way to do…
Syd Kerckhove
  • 783
  • 5
  • 19
-1
votes
2 answers

dynamic two dimensional array to static array

any body knows how to convert 2d dynamic array to static so that i can use it in lapacke. dgels function which only take static matrix in c? when i use malloc it does not give correct answer. how can i use malloc so that it works with…
-1
votes
3 answers

ImportError with scipy/sklearn: `/usr/lib/liblapack.so.3gf: undefined symbol: ATL_chemv`

My code worked fine in Ubuntu 12.04, but now I have error: from sklearn.metrics import accuracy_score File "/usr/local/lib/python2.7/dist-packages/sklearn/metrics/__init__.py", line 6, in from .metrics import (accuracy_score, File…
user1635327
-1
votes
1 answer

cula use of culaSgels - wrong argument?

I am trying to use the culaSgels function in order to solve Ax=B. I modified the systemSolve example of the cula package. void culaFloatExample() { int N=2; int NRHS = 2; int i,j; double cula_time,start_time,end_time; …
George
  • 5,808
  • 15
  • 83
  • 160
-1
votes
2 answers

I can't allocate memory for bigger matrices then ~200x200 Lapack Visual Studio in C Here is my code

I am bench-marking the execution time of solving matrices , and i cant get more then ~200x200, i should go probably 1500x1500 or close to that. I am running this on VS . #include #include #include "lapacke.h" #include…
Ta Nes
  • 13
  • 1
-1
votes
1 answer

fortran openmp lapack ZGEEV

is it possible to multi thread subroutines? I like to use openmp to run ZGEEV subroutine out of the lapack module on mutiple cores to fast things up. Is that even possible?
DaPhil
  • 1,509
  • 4
  • 25
  • 47
1 2 3
68
69