|From:||José Luis García Pallero|
|Subject:||Re: Get pointer to data in Matrix classes [possible solution]|
|Date:||Thu, 12 Mar 2009 11:17:54 +0100|
The standard method for getting writable data pointer is (somewhat
unfortunately) called fortran_vec.
This will also correctly make a copy of the matrix if it is aliased.
Const-casting data () will work in your case (you've just created the
matrix, so you know that it's unaliased, but never do it on matrices
passed from outside).
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
|[Prev in Thread]||Current Thread||[Next in Thread]|