[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44334] isequal fails to compare size of objec
From: |
Oliver Heimlich |
Subject: |
[Octave-bug-tracker] [bug #44334] isequal fails to compare size of objects |
Date: |
Mon, 14 Sep 2015 19:59:12 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.2.1 |
Follow-up Comment #8, bug #44334 (project octave):
The Mathworks' documentation on size and numel does not help understand how a
class should override its public size related properties. As far as I
understand, the object has a built-in size of [1 1] and is scalar by default.
If both size and numel are overridden in a consistent way then everything
should be well and the object is treated as if it was a different size by
other functions, e. g., ismatrix, isvector, isscalar, isempty, …. If only
one of size and numel is overridden, it is not quite clear how the object
behaves. Also there is a method numArgumentsFromSubscript in Matlab, which is
not needed/used in Octave.
Anyway, I have created a revised patch, which addresses the issues remarked by
Julien. The change regarding __isequal__.m solves this bug and should be
applied to the stable branch.
The supplementary test cases should now comply with Matlab semantics.
(file #34878)
_______________________________________________________
Additional Item Attachment:
File name: 44334.patch Size:4 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44334>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #44334] isequal fails to compare size of objects,
Oliver Heimlich <=