help-octave
[Top][All Lists]
Advanced

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

octave_value::octave_idx_type_vector_value () "flattens" array


From: c.
Subject: octave_value::octave_idx_type_vector_value () "flattens" array
Date: Sat, 13 Jul 2013 08:05:06 +0200

Hi,

I'm trying to extraxt an array of index_type from a map field.
If I do:

 tt =  m.contents ("t").octave_idx_type_vector_value ();

tt is "flat" i.e. it has only one dimension, while to maintain the shape I have 
to do

 tt =  m.contents ("t").octave_idx_type_vector_value (true,true,true).reshape 
(m.contents ("t").dims ());

which is very ugly. Does anyone know why it is so? I can't seem to find a 
reason why the shape should be lost
when invoking "octave_idx_type_vector_value ()" …

c.



reply via email to

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