octave-bug-tracker
[Top][All Lists]
Advanced

[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 22:53:11 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0

Follow-up Comment #5, bug #48749 (project octave):

By the way, 
n = numel(A) is equivalent to prod(size(A)) 
is not appropriate for Java arrays, 
because they are usually ragged: the entries of Object[][] 
in general do not have the same length. 
Thus numel cannot be determined by product but by recursively summing up. 

That may be the reason why matlab defines size(arr) for java arrays arr as it
does. 

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48749>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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