help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

odd behaviour of thin svd?


From: Paul Soderlind
Subject: odd behaviour of thin svd?
Date: Fri, 31 Aug 2001 14:48:33 +0200

Hi all,

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



Thanks for any help


Paul Söderlind



********************************************************
Paul Söderlind
Stockholm School of Economics
PO Box 6501 (or Sveav. 65)
SE-113 83 Stockholm
Sweden

email: address@hidden
homepage: http://www.hhs.se/personal/psoderlind/

telephone: +46-8-7369161
********************************************************




-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]