I am writing a C extension and would like to take advantage of the linear algebra routines that the numpy libraries are linked to. Is there a cross platform method of getting the path for these? I've looked through most of numpy.distutils.*
and haven't found anything like this. I've also tried numpy.show_config()
which prints out the correct name of the libraries being linked to but the wrong directory.
My goal is to be able to have access to the low level routines that numpy calls under the hood. I.e. in my C code I'd like to be able to do
dgetrf(&m, &n, a, &lda, ipiv, &info);
// or
LAPACK_dgetrf(&m, &n, a, &lda, ipiv, &info);
Any help or links to documentation is appretiated.