help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cast Matrix to C++ array


From: Andy Buckle
Subject: Re: Cast Matrix to C++ array
Date: Wed, 5 Jan 2011 08:19:28 +0000

On Wed, Jan 5, 2011 at 7:26 AM, Surfing <address@hidden> wrote:
> Hi all,
> is there a way to do a "fast" cast from a Matrix octave type to an C++
> bi-dimensional double array?
> Or the only way is doing it element by element?

"
— Method: T* fortran_vec (void)

    This method returns a pointer to the underlying data of the matrix
or a array so that it can be manipulated directly, either within
Octave or by an external library.
"

http://www.gnu.org/software/octave/doc/interpreter/Matrices-and-Arrays-in-Oct_002dFiles.html#Matrices-and-Arrays-in-Oct_002dFiles

-- 
/* andy buckle */


reply via email to

[Prev in Thread] Current Thread [Next in Thread]