bugGNU Octave - Bugs: bug #35162, randperm 2-arg incompatibility

 
 

bug #35162: randperm 2-arg incompatibility

Submitted by:  Jesse Rosenstock <jmrosenstock>
Submitted on:  Fri 23 Dec 2011 03:58:32 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Jesse RosenstockOpen/Closed: Closed
Release: 3.4.3Operating System: Mac OS

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 24 Dec 2011 03:48:40 PM UTC, comment #2:

Great, thanks! I'm looking forward to the release.

Jesse Rosenstock <jmrosenstock>
Fri 23 Dec 2011 04:03:57 PM UTC, comment #1:

The two arg form of randperm was added in a very recent Matlab version (2011b, iirc). I have already added this calling form in the dev version, and it will be part of the impending 3.6 release.

http://hg.savannah.gnu.org/hgweb/octave/log?rev=randperm

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Fri 23 Dec 2011 03:58:32 PM UTC, original submission:

The matlab documentation says that randperm(n, k) returns a row vector of k unique integers from 1:n.

The octave version returns a k-by-n matrix.

Jesse Rosenstock <jmrosenstock>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by jmrosenstock (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 23 Dec 2011 04:03:57 PM UTCjordighStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1