On Tue, May 27, 2008 at 3:04 PM, Gunter Winkler <guwi17@gmx.de> wrote:
Am Dienstag, 27. Mai 2008 20:58 schrieb Jeremy Conlin:
> 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?
>

AFAIR: use &(A.data()[0]) which is of type double*.

Of course this is the way to do it.  I should have thought of this.  

Thanks for the help!

Jeremy