help-octave
[Top][All Lists]
Advanced

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

svd in a DLD


From: John W. Eaton
Subject: svd in a DLD
Date: Fri, 5 Mar 2004 13:32:28 -0600

On  5-Mar-2004, Al Niessner <address@hidden> wrote:

| My m-file that I am translating to a DLD uses the octave function 'svd'.
| Now, rather than use feval in my DLD, I can use SVD directly. However,
| the return values and such are somewhat ambiguous -- I only read the
| help for svd in octave and the header file in include/octave-2.1.52. Is
| this the correct interpretation:
| 
|   m-file                               C++
|   ------                               ---
| [a b c] = svd (M, 0);        SVD svd(M, SVD:economy);
|                              Matrix a = svd.left_singular_matrix();
|                              DiagMatrix b = svd.singular_values();
|                              Matrix c = svd.right_singular_matrix();
| 
| If it not the correct one, then what is?

The file src/DLD-FUNCTIONS/svd.cc should show you precisely what
Octave does with the SVD object.

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



reply via email to

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