|
From: | Carlo de Falco |
Subject: | Re: 4-D Array |
Date: | Thu, 10 Sep 2009 21:15:40 +0200 |
On 10 Sep 2009, at 18:57, Carlo de Falco wrote:
Hi, I am trying to create a 4D NDArray (3x3x3x3) from within an oct-file but I don't understand how dim_vector works, I tried the following but it crashes Octave: dim_vector a (4); a(0)=3;a(1)=3;a(2)=3;a(3)=3; NDArray b (a); with the error: ../liboctave/dim-vector.h:113: failed assertion `i >= 0 && i < ndims' any help appreciated, c.
ooops looking at the constructor implementation I see that "dim_vector a (4)" is equivalent to "dim_vector a (4, 1)", so the above makes no sense... c.
[Prev in Thread] | Current Thread | [Next in Thread] |