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

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

[Octave-bug-tracker] [bug #30114] perms generates different results to m


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #30114] perms generates different results to matlab
Date: Fri, 11 Jun 2010 23:15:28 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100501 Iceweasel/3.5.9 (like Firefox/3.5.9)

Update of bug #30114 (project octave):

             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #8:

If you choose to modify the perms function, please remember that it is
essential that you not examine the code in the Matlab function in order to
create your version.

I agree with David and Rik.  I don't see any point in trying to make the
function produce identical output.  There seems to be no logic to the
ordering, so it appears arbitrary.  Perhaps it will never change in Matlab. 
So what?  The function doesn't guarantee any ordering.  It just produces all
the permutations.  Octave's function gives you that, same as Matlab.  If you
want a particular order, I recommend that you do whatever is needed to obtain
the ordering you desire.  That way you are not dependent on the apparently
arbitrary ordering that Matlab happens to give you.


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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