Re: [eigen] Access to the raw data of a Matrix / Vector ?

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


> I want to read (binary) into a big matrix. For that I need a pointer to the
> beginning of the raw data managed by the matrix.
>
> Something like
>
> MatrixXd A(m,n);
>
> FILE.read( (char*) A.raw(), m*n*sizeof(double));

A.data() per http://eigen.tuxfamily.org/dox/QuickRefPage.html ?

- Rhys



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/