bugGNU Octave - Bugs: bug #36904, function rank throws exception on...

 
 

bug #36904: function rank throws exception on non square matrices

Submitted by:  None
Submitted on:  Fri 20 Jul 2012 04:03:50 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: DuplicateAssigned to: None
Originator Name: rnestlerOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.6.2
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 20 Jul 2012 04:26:01 PM UTC, comment #1:

This seems like a bug in LAPACK:

http://icl.cs.utk.edu/lapack-forum/archives/lapack/msg01219.html

It's also been reported here before as bug #35596.

Btw, non-square matrices can have an SVD. That's the whole point of having an SVD instead of eigenvalue decomposition, to have something that works for non-square matrices.

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Fri 20 Jul 2012 04:03:50 PM UTC, original submission:

When using the function rank on non square matrix the following error gets thrown:

This also happens for example with rank([1 2 3]) or rank([1,0,0]
).
Using the same in matlab gives the correct result '1'

It probably has something to do with the fact that rank needs the singular values to calculate the rank, which can only be calculated for square matrices.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by None (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 20 Jul 2012 04:26:49 PM UTCjordighDependencies-=>Depends on bugs #35596
    Fri 20 Jul 2012 04:26:01 PM UTCjordighStatusNone=>Duplicate
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1