www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Error calling geqrs function from lubeck package.

reply Jamie <nothanks gmail.com> writes:
I'm attempting to use the lubeck package, as described here 
https://forum.dlang.org/post/axacgiisczwvygyefhwy forum.dlang.org

I have lubeck, mir-algorithm, mir-blas, mir-lapack downloaded and 
accessible by the compiler, and I have installed liblapack-dev 
and libblas-dev.

When I attempt to run the example for geqrs, 
https://github.com/libmir/mir-lapack/blob/master/examples/geqrs/source/app.d ,
I get the following error

     undefined reference to 'dgeqrs_'

Note that the issue comes from the line
     geqrs(A_, B_, tau_, work_);

but the previous line works
     geqrf(A_, tau_, work_);

After following the calls between the different packages and 
files, I find that the issue is likely the fact that
     sgeqrf.o
     dgeqrf.o
     cgeqrf.o
     zgeqrf.o

all exist in the liblapack-dev library and are hence callable, but
     sgeqrs.o
     dgeqrs.o
     cgeqrs.o
     zgeqrs.o

do not exist, and hence are not callable.

Is this an issue with mir-lapack? The fact that it is calling 
files/ functions that do not exist? Or is my version of 
liblapack-dev the incorrect one, as it doesn't contain the files/ 
functions being called?

Note that if I don't call the function geqrs(..); my code works, 
so I believe that I have set-up the mir- files correctly.
Apr 16 2018
next sibling parent reply Jamie <nothanks gmail.com> writes:
On Tuesday, 17 April 2018 at 03:26:25 UTC, Jamie wrote:
 
Sorry it's really an error calling geqrs function from mir-lapack package.
Apr 16 2018
next sibling parent jmh530 <john.michael.hall gmail.com> writes:
On Tuesday, 17 April 2018 at 03:30:45 UTC, Jamie wrote:
 On Tuesday, 17 April 2018 at 03:26:25 UTC, Jamie wrote:
 
Sorry it's really an error calling geqrs function from mir-lapack package.
If you don't get an answer here, you can always file an issue at mir-lapack with a simple example.
Apr 18 2018
prev sibling parent chuoiit18 <chuoiitc18 gmail.com> writes:
On Tuesday, 17 April 2018 at 03:30:45 UTC, Jamie wrote:
 On Tuesday, 17 April 2018 at 03:26:25 UTC, Jamie wrote:
 
Sorry it's really an error calling geqrs function from mir-lapack package.
, This is a great article. It gave me a lot of useful information. thank you very much. Link profile: http://dakhoaauahcm.vn
Apr 20 2018
prev sibling parent 9il <ilyayaroshenko gmail.com> writes:
On Tuesday, 17 April 2018 at 03:26:25 UTC, Jamie wrote:
 I'm attempting to use the lubeck package, as described here 
 https://forum.dlang.org/post/axacgiisczwvygyefhwy forum.dlang.org

 I have lubeck, mir-algorithm, mir-blas, mir-lapack downloaded 
 and accessible by the compiler, and I have installed 
 liblapack-dev and libblas-dev.

 When I attempt to run the example for geqrs, 
 https://github.com/libmir/mir-lapack/blob/master/examples/geqrs/source/app.d ,
I get the following error

     undefined reference to 'dgeqrs_'
dgeqrs does not exists in many LAPACK implementations. It is quite new addition to LAPACK. -- Ilya
Jul 05 2018