[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33301] rand() and orth() not fully MatLab com
From: |
Jordi Gutiérrez Hermoso |
Subject: |
[Octave-bug-tracker] [bug #33301] rand() and orth() not fully MatLab compatible |
Date: |
Tue, 02 Aug 2011 16:49:29 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) 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:
http://hg.savannah.gnu.org/hgweb/octave/rev/d7a91b3fb7f9
http://hg.savannah.gnu.org/hgweb/octave/rev/f7a8d1dafda3
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:
<http://savannah.gnu.org/bugs/?33301>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/