help-octave
[Top][All Lists]
Advanced

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

Re: svd in a DLD


From: Al Niessner
Subject: Re: svd in a DLD
Date: Fri, 05 Mar 2004 13:12:03 -0800

Thank you for the reply. I was able to verify how svd from the
interpreter handles it.

On Fri, 2004-03-05 at 11:32, John W. Eaton wrote:
> 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
-- 
Al Niessner <address@hidden>
Jet Propulsion Laboratory

All opinions stated above are mine and do not necessarily reflect 
those of JPL or NASA.

 ----
| dS | >= 0
 ----



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