[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33301] rand() and orth() not fully MatLab com
Jordi Gutiérrez Hermoso
[Octave-bug-tracker] [bug #33301] rand() and orth() not fully MatLab compatible
Tue, 02 Aug 2011 16:49:29 +0000
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:126.96.36.199) Gecko/20110109 Sparkraptor/3.6.13
Follow-up Comment #3, bug #33301 (project octave):
Upon some investigation, this is indeed an Octave bug. rand's docstring says
it should behave like eye, and eye does treat negative dimensions as zero.
orth wasn't even checking its arguments and associated functions like svd do
return empty arrays, so I modified orth to do the same.
I asked around, and it seems Matlab is kinda stupid about empty matrices to
orth and works the way it does out of fluke. Apparently orth(ones(0,1)) isn't
an error but orth(ones(1,0)) is. I made both of those return an empty matrix
in Octave, null works the same way.
Thanks. Patched in these two csets:
These are on the default branch, so you either need to build it yourself or
wait for the 3.6 release to see the fix.
Reply to this item at:
Message sent via/by Savannah