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: Qianqian Fang
Subject: [Octave-bug-tracker] [bug #30114] perms generates different results to matlab
Date: Fri, 11 Jun 2010 15:07:55 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3

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

                 Summary: perms generates different results to matlab
                 Project: GNU Octave
            Submitted by: fangq
            Submitted on: Fri 11 Jun 2010 03:07:54 PM GMT
                Category: Libraries
                Severity: 3 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Qianqian Fang
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

basically, the orders of the rows are different, this had caused some
inconsistent results for a script I have been working on.

to test, try perms(1:4) and perms([2 1 4 3]) in octave and matlab. 

In general, the first column of matlab's output is the slowest index, moving
by the order from the end of the input vector to the front. While, octave's is
a bit reversed, and more random.

The algorithm in perms.m should be rewrite in order to match the output
orders.




    _______________________________________________________

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]