bugGNU Octave - Bugs: bug #45680, permute rows or columns

 
 

bug #45680: permute rows or columns

Submitted by:  Marco Caliari <caliari>
Submitted on:  Mon 03 Aug 2015 02:30:49 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
Status: Wont FixAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.8.2Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Thu 06 Aug 2015 07:21:31 AM UTC, comment #6:

Please close, thanks.

Marco

Marco Caliari <caliari>
Project Member
Wed 05 Aug 2015 02:49:56 PM UTC, comment #5:

Should I close this report, or do you want to leave it open with a low priority?

Rik <rik5>
Project Administrator
Wed 05 Aug 2015 10:32:18 AM UTC, comment #4:

Hi Rik,

Matlab does not work either. On the other hand, I now agree with you that

should leave the matrix unchanged.

Marco

Marco Caliari <caliari>
Project Member
Tue 04 Aug 2015 05:52:43 PM UTC, comment #3:

The documentation is pretty clear that you need to specify the order of all dimensions of an N-d array. Since for Octave and Matlab arrays are always at least 2-D the second argument must have a minimum of two entries.

You might check how Matlab handles this. If they have an exception then we might do it to for Matlab compatibility. The documentation is at http://www.mathworks.com/help/matlab/ref/permute.html, but doesn't reference any thing like this.

Also, if I was to introduce an exception, I would think that

would leave the matrix unchanged since it is suggested to put the first dimension of the original matrix in the first dimension slot in the result matrix.

Rik <rik5>
Project Administrator
Tue 04 Aug 2015 05:25:18 PM UTC, comment #2:

Dear all,

I wrote a code working in d spatial dimensions and used the command

where A is a N-d array. When d=1, there is an "invalid call to permute". Why not to define permute(A,1) as A.', when A is a colum or a row?

Thanks,

Marco

Marco Caliari <caliari>
Project Member
Mon 03 Aug 2015 07:56:36 PM UTC, comment #1:

@Marco, I think you need to re-post your bug report. It didn't make it into the comment field.

Rik <rik5>
Project Administrator
Mon 03 Aug 2015 02:30:49 PM UTC, original submission:

Dear all,

I wrote a code working in d spatial dimensions and used the command

Marco Caliari <caliari>
Project Member

 

(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 rik5 (Posted a comment)
  • -unavailable- added by caliari (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
    Thu 06 Aug 2015 03:23:57 PM UTCrik5StatusNone=>Wont Fix
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1