[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
odd behaviour of thin svd?
From: |
John W. Eaton |
Subject: |
odd behaviour of thin svd? |
Date: |
Fri, 31 Aug 2001 09:30:01 -0500 |
On 31-Aug-2001, Paul Soderlind <address@hidden> wrote:
| I just tried svd([1 2],0) in Octave-2.1.34 (Windows NT, CygWin). It seems as
| the result is transposed. Is this to be expected, or is it a buglet?
|
| (1) The standard form: [u,s,v]=svd([1 2]), u*s*v'
|
| u = 1
| s =
| 2.23607 0.00000
| v =
| 0.44721 -0.89443
| 0.89443 0.44721
| ans =
| 1.00000 2.00000
|
|
| (2) The thin form: [u,s,v]=svd([1 2],1), u*s*v'
|
| u = 1
| s = 2.2361
| v =
| 0.44721 0.89443
| ans =
| 1.00000
| 2.00000
I could reproduce this with 2.1.34, but the problem seems to be fixed
in the current CVS sources.
jwe
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------