patchGNU Octave - Patches: patch #8046, [octave forge] (nan): ranks...

 
 

patch #8046: [octave forge] (nan): ranks function - add support for multi-D arrays

Submitter:  Nir Krakauer <nir_krakauer>
Submitted:  Fri 10 May 2013 03:54:33 PM UTC
 
Category:  Forge : new feature Priority:  5 - Normal
Status:  Wont Do Privacy:  Public
Assigned to:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Mon 30 Aug 2021 08:15:58 AM UTC, comment #2: 

Agree to comment #1.  If there is still any need for this patch, it can be opened again.

Closing item.

Kai Torben Ohlhus <siko1056>
Project Member
Fri 30 Jul 2021 08:18:10 PM UTC, comment #1: 

it appears that the current nan package version (3.5.3) ranks function does support nD arrays:

>> A = cat(3,randi(5,3,3),randi(5,3,3),randi(5,3,3));
>> B = cat(4,A,A);
>> pkg load nan

*snip shadow warnings*

>> ranks(B,3)
ans =

ans(:,:,1,1) =

   2.5000   2.0000   1.5000
   2.0000   1.0000   1.0000
   1.0000   2.0000   1.0000

ans(:,:,2,1) =

   2.5000   3.0000   1.5000
   3.0000   2.0000   2.0000
   2.5000   1.0000   2.0000

ans(:,:,3,1) =

   1.0000   1.0000   3.0000
   1.0000   3.0000   3.0000
   2.5000   3.0000   3.0000

ans(:,:,1,2) =

   2.5000   2.0000   1.5000
   2.0000   1.0000   2.0000
   1.0000   2.5000   1.0000

ans(:,:,2,2) =

   2.5000   3.0000   1.5000
   3.0000   2.0000   2.0000
   2.5000   1.0000   2.5000

ans(:,:,3,2) =

   1.0000   1.0000   3.0000
   1.0000   3.0000   2.0000
   2.5000   2.5000   2.5000

patch likely can be closed.

Nicholas Jankowski <nrjank>
Project Member
Fri 10 May 2013 03:54:33 PM UTC, original submission:  

The attached patch allows ranking elements over any dimension of  arbitrary-size arrays (currently only 2-D is supported) and adds test cases.

Nir Krakauer <nir_krakauer>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #28061:  ranks.patch added by nir_krakauer (2KiB - text/x-patch)
file #28062:  ranks.m_new added by nir_krakauer (7KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nrjank (Posted a comment)
  • -email is unavailable- added by siko1056 (Updated the item)
  • -email is unavailable- added by carandraug (developer and maintainer of the NaN package)
  • -email is unavailable- added by nir_krakauer (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

     

     

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-08-30 siko1056 StatusNone Wont Do
        Open/ClosedOpen Closed
    2020-01-18 siko1056 CategoryNone Forge : new feature
        Summaryranks function (NaN package): add support for multi-D arrays [octave forge] (nan): ranks function - add support for multi-D arrays
    2013-05-10 carandraug Carbon-Copy- Added -email is unavailable-
    2013-05-10 nir_krakauer Attached File- Added ranks.patch, #28061
        Attached File- Added ranks.m_new, #28062

    Back to the top


    Powered by Savane 3.9