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

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

[Octave-bug-tracker] [bug #62870] reshape gives unexpected OOM/dim too l


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #62870] reshape gives unexpected OOM/dim too large error for improper size vector
Date: Sat, 6 Aug 2022 13:42:11 -0400 (EDT)

Follow-up Comment #2, bug #62870 (project octave):

i mean, it's a bit ridiculous but it would point (at least to me) out right
away where my error was.

not sure about the first question, but it would make sense to limit it, but
since the initial 100x1 can vary as well as the 10x2x6x... what would be the
not-to-onerous way to do that.   if(numchar > 80) [trim to 80 and end with
...] ? 

checking how matlab's reshape yells about such things, first it doesn't allow 
anything other than a row vector.  i was surprised ours took an array at all.
then it gives:


Error using reshape
Number of elements must not change. Use [] as one of the size inputs to
automatically calculate the appropriate size for that dimension. 


making me think it is just failing on a numel(a)==prod(b) check and reporting
that.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62870>

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




reply via email to

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