Boost logo

Ublas :

From: Jeremy Conlin (jeremit0_at_[hidden])
Date: 2008-05-27 14:58:05


I am trying to call LAPACK functions using ublas objects. The LAPACK
functions require a pointer to the first array element of the matrix. I
tried:
matrix<double> A(3,3);

and then pass A.data() as the pointer to the elements of A. The compiler
didn't like that. What is the best way to get the pointer to the elements
of A?

I know there are some experimental libraries to bind LAPACK and ublas
together. I would like to use these to avoid problems like those mentioned
above. Unfortunately, the LAPACK functions I want to use are not (yet)
implemented into the boost-sandbox.

Thanks,
Jeremy