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

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


Hi,

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));


Many thanks for a hint,
Helmut.



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