On 10 Feb 2015, at 10:03, David Ham <David.Ham@imperial.ac.uk> wrote:
On 9 February 2015 at 18:15, Mitchell, Lawrence <lawrence.mitchell@imperial.ac.uk> wrote:
On 9 Feb 2015, at 18:11, Colin Cotter <colin.cotter@imperial.ac.uk> wrote:
Dear Firedrakers, David has been helping me by implementing a way of assembling the inverse of a local tensor. This involves calling LAPACK routines, and we realised that the big problem is how to locate clapack, and how to link against it.
The only approach we could think of was that scipy.linalg.lapack builds a clapack.so. Then, we could make our own header file that contains the interfaces to the LAPACK routines that we want to use, and compile aginst clapack.so. We really don't want to replicate some kind of CMAKE approach to locating libraries for COFFEE.
Use Eigen, which is header only?
I don't understand why that helps - now we have to find Eigen (finding headers versus finding libraries would not seem to be a huge distinction).
pkg-config --cflags eigen3 Which returns an error code if no package was found. But more generally, I think there is not a good way to do this without resorting to some kind of configure-like dance. Lawrence