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

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

[Octave-bug-tracker] [bug #50575] Integer overflow in whos when calculat


From: Colin Macdonald
Subject: [Octave-bug-tracker] [bug #50575] Integer overflow in whos when calculating total elements in matrix
Date: Wed, 22 Aug 2018 14:10:38 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

Follow-up Comment #4, bug #50575 (project octave):

A reasonable argument can be made for why such a sparse matrix cannot be
linearly indexed, e.g., A(10) as opposed to A(1,1) b/c A(end) is longer than
maxint).

But the point is, if I can create such a matrix, I should be able to call
"whos" and see that I made one.

Also, note `numel(A)` returns a double from the users point of view so from
her point of view, why should `prod(size(A))` work but `numel(A)` doesn't.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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