[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48749] size and dimensionality of java arrays
From: |
Ernst Reissner |
Subject: |
[Octave-bug-tracker] [bug #48749] size and dimensionality of java arrays |
Date: |
Fri, 12 Aug 2016 21:16:51 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0 |
Follow-up Comment #4, bug #48749 (project octave):
Hi Mike,
I overread a comment of you:
'To be compatible, the size of a Java array should always be Nx1 reflecting
the length of the outermost array. The number of dimensions (ndims) should
always be 2. It would be nice to confirm whether numel agrees with size for 2
or higher-dimensional Java arrays.'
Hm, according to matlab docs
http://de.mathworks.com/help/matlab/ref/numel.html,
n = numel(A) is equivalent to prod(size(A)).
So size(.) determines numel(.) not the other way round.
In the docs, nothing is mentioned on java or not.
This is not necessary,
because size makes the distinction.
That's the way, also Octave shall implement numel.
So, I think there is no futher info required
and I would vote (if i could) for confirming the bug.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48749>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/