[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57305] @vpi/sum.m fails in octave (but not in
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #57305] @vpi/sum.m fails in octave (but not in matlab) |
Date: |
Wed, 27 Nov 2019 05:44:23 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
Follow-up Comment #5, bug #57305 (project octave):
A minimal way to reproduce the issue is with the following:
classdef A
end
In Matlab:
>> a = [A, A]
a =
1x2 A array with no properties.
>> size(a)
ans =
1 2
>> permute(a,[2 1])
ans =
2x1 A array with no properties.
In Octave:
octave> a(1) = A; a(2) = A; # workaround for bug #53906 and bug #44665
octave> a
a =
A object array with properties:
octave> size(a)
ans =
1 2
octave> permute(a,[2 1])
error: octave_base_value::permute (): wrong type argument 'object'
So Matlab has a default implementation of permute for classes.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57305>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/