help-octave
[Top][All Lists]
Advanced

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

Indexing, Octave C++ API


From: Reza Housseini
Subject: Indexing, Octave C++ API
Date: Sat, 21 Jan 2012 15:24:08 +0100

Hello everyone,

I'm not sure if this is a bug or just a miss use myself. If I index an NDArray in the C++ API it seems to have 2 possibilities:

int32NDArrayA(dim_vector(10, 11, 12));

// Possibility 1

octave_int32 a_1 = A.page(11).column(10).elem(9);

// Possibility 2

octave_int32 a_2 = A(9, 10, 11);


But strangely the variables a_1 and a_2 are not the same. What is the reason for that?

Thanks for the help!

Cheers Reza

reply via email to

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