help-octave
[Top][All Lists]
Advanced

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

Re: 3D matrix and dynamically linked functions


From: David Bateman
Subject: Re: 3D matrix and dynamically linked functions
Date: Fri, 17 Mar 2006 12:59:40 +0100
User-agent: Thunderbird 1.4.1 (Windows/20051006)

Matthieu wrote:
hi [new on this list],

i'm working with three dimensional
matrix under octave 2.1.71 (Linux 2.6.12).


I 've read  http://www.network-theory.co.uk/docs/octave/octave_90.html
in order  to create a dynamically linked function in C and i need  to
handle 3 dimensionnal Matrix.

"Matrix(N,N,m)" 'only' creates a 2D (NxN) matrix
filled with "m" whereas in octave you can easily
create 3D matrix.

Is there an easy way to create multidimensional
or at least 3D matrix with octave library <oct.h> ?


Regards,

dim_vector dv(3)
dv(0) = m;
dv(1) = n;
dv(2) = p;
NDArray m(dv);

D.



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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