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

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

[Octave-bug-tracker] [bug #33062] resize and reshape used with objects r


From: David Bateman
Subject: [Octave-bug-tracker] [bug #33062] resize and reshape used with objects return structures
Date: Sun, 17 Apr 2011 18:40:35 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; fr-fr) AppleWebKit/533.20.25 (KHTML, like Gecko) Version/5.0.4 Safari/533.20.27

Follow-up Comment #3, bug #33062 (project octave):

The size is calculated as the number of elements multiplied by the size of the
element. This is true for all Octave data types, so I don't find that a 1x0
object occupies O bytes as given by "whos" as surprising.

As for the second issue; The fact that you can resize or reshape the object
doesn't mean that the methods of the class have to make sense of the objects
that are reshaped. I picked the "ftp" class as the only class that is included
with Octave itself, and that makes demonstrating the issue easiest.
Unfortunately the methods of the ftp class can only had 1x1 objects as you
found out. I was aware of this when I submitted the bug report, but went with
the convenience of using he "ftp" class to demonstrate the issue.

Its easy to create a test class that demonstrates the issue with a class that
can handle MxN objects, for example the MTEX package was several of them.
D.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

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