more general LAPACK support for NumPy
![](https://secure.gravatar.com/avatar/56a74337bcc4d9e889d8adcec82cce59.jpg?s=120&d=mm&r=g)
From time to time we need an additional linear algebra routine to be avaible in Python. I find myself wrapping these functions then. As
Hello, these are FORTRAN routines, doing this for Python version on Solaris (Sun CC/Sun F77), linux (gcc/g77) and Windows (VC++/Digital VF) becomes nontrivial. Neither f2py nor pyfort provide Win support and I doubt that automatic generation is usefull for many LAPACK routines, especially those that need workspace, because usually we want LWORK to be the optimal size. So my Question is, are there other users wrapping LAPACK routines for NumPy. If so, how are you doing it. For the C/FORTRAN wrapping I somehow like the approach used for cfortran.h (see http://www-zeus.desy.de/~burow/cfortran/index.html), but I'm afraid, the license is not acceptable. Is anyone aware of a C version of LAPACK besides the f2c version on netlib. I do like the approach used in the ATLAS clapack part, but there are only a very few LAPACK routines handeled there. If there is greater need for additional LAPACK routines for NumPy, should we bundle the efforts in (a) developing guidelines for how to write Python wrappers for LAPACK routines and (b) collecting routines provided by different users to provide a hopefully growing support for LAPACK in Python. Greetings Berthold -- email: hoel@GermanLloyd.org ) tel. : +49 (40) 3 61 49 - 73 74 ( C[_] These opinions might be mine, but never those of my employer.
![](https://secure.gravatar.com/avatar/910a8d9cd3aadf10927a61be8fd8f86b.jpg?s=120&d=mm&r=g)
There is an old binding to the complete CLapack package, which can be found at ftp://dirac.cnrs-orleans.fr/pub/PyLapack.tar.gz It does not seem to have special support for Windows, but one can perhaps start from there. I have tried cfortran ones and the wrapped function signatures become quite long and verbose. I think one important extension would be to make the automatic wrapper generators pyfort and f2py support some windows compilers, although I must admit, I have not looked into them for windows support yet. __Janko
![](https://secure.gravatar.com/avatar/56475d2e8acb48b4308f609982f94440.jpg?s=120&d=mm&r=g)
Two notes in regard to this thread: 1. I am in progress making Pyfort support Digital Visual Fortran on Windows. 2. Pyfort does have a facility for automatic allocation of work space, at least in the case that the size can be computed using ordinary arithmetic from the sizes of other arguments or other integer arguments. -----Original Message----- From: numpy-discussion-admin@lists.sourceforge.net [mailto:numpy-discussion-admin@lists.sourceforge.net]On Behalf Of Janko Hauser Sent: Tuesday, February 06, 2001 4:08 AM To: Berthold Hollmann Cc: numpy-discussion@lists.sourceforge.net Subject: Re: [Numpy-discussion] more general LAPACK support for NumPy There is an old binding to the complete CLapack package, which can be found at ftp://dirac.cnrs-orleans.fr/pub/PyLapack.tar.gz It does not seem to have special support for Windows, but one can perhaps start from there. I have tried cfortran ones and the wrapped function signatures become quite long and verbose. I think one important extension would be to make the automatic wrapper generators pyfort and f2py support some windows compilers, although I must admit, I have not looked into them for windows support yet. __Janko _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/numpy-discussion
participants (3)
-
hoel@germanlloyd.org
-
Janko Hauser
-
Paul F. Dubois