[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #36904] function rank throws exception on non
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #36904] function rank throws exception on non square matrices |
Date: |
Fri, 20 Jul 2012 16:03:51 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1 |
URL:
<http://savannah.gnu.org/bugs/?36904>
Summary: function rank throws exception on non square
matrices
Project: GNU Octave
Submitted by: None
Submitted on: Fri 20 Jul 2012 04:03:50 PM UTC
Category: Libraries
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name: rnestler
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.6.2
Operating System: GNU/Linux
_______________________________________________________
Details:
When using the function rank on non square matrix the following error gets
thrown:
octave:20> rank([1 2 3], [0 0 0])
** On entry to DORGLQ parameter number 5 had an illegal value
error: svd: exception encountered in Fortran subroutine dgesvd_
error: called from:
error: /usr/share/octave/3.6.2/m/linear-algebra/rank.m at line 52, column
11
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.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36904>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #36904] function rank throws exception on non square matrices,
anonymous <=