From: Jeremy Conlin (jeremit0_at_[hidden])
Date: 2008-05-27 15:31:38
On Tue, May 27, 2008 at 3:04 PM, Gunter Winkler <guwi17_at_[hidden]> 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()) which is of type double*.
Of course this is the way to do it. I should have thought of this.
Thanks for the help!