Re: pseudoinverse
- From: SC Huang <schuang21@xxxxxxxxx>
- Date: Sat, 17 Sep 2005 14:35:53 +0000 (UTC)
Are the elements in S (diagonal) matrix sorted according to their
alphebatic order in your numerical recipes code? Is it possible that
the numerical recipes code scale S (and either U and V) differently ?
Or is it possible that it returns "V" instead of "transpose(V)" (some
software does this)?
These are just my guessings. I only have experience using matlab and
other fortran codes for svd, but not scilab and numerical receipe's
code. :(
On 2005-09-17, andrea mordini <stredostudio@xxxxxxxxx> wrote:
> What u write is correct but i've tried to compute the SVD
> with scilab and with the code provided by numerical recipes
> and i obtain different U S and V matrices.
> In both the cases A=U S transpose(V) but the calculation of the pinv is
> different in my code (wrong) and in scilab (correct)
> How is this possible?
>
> andrea
>
>
> SC Huang wrote:
>> OK, I am not sure if this is what you are looking for:
>>
>> If the svd of matrix is A is:
>> A = U S V^*
>> then the pseduoinverse of A is:
>> pseudo-inv(A) = V S^{-1} U^*
>>
>> Note that S is diagonal, so S^{-1} is easy to calculate. Also, V^*
>> denotes the hermitian of V (complex cojugate transpose). If V is real,
>> then V^* is just the transpose of V. Hope this helps.
>>
>>
>> On 2005-09-16, andrea mordini <stredostudio@xxxxxxxxx> wrote:
>>
>>>I'm searching the fortran code to compute the pseudoinverse matrix by
>>>the SVD single value decomposition which i have already computed.
>>>thanks
>>>
>>>andrea
.
- References:
- pseudoinverse
- From: andrea mordini
- Re: pseudoinverse
- From: andrea mordini
- pseudoinverse
- Prev by Date: Re: pseudoinverse
- Next by Date: Re: pseudoinverse
- Previous by thread: Re: pseudoinverse
- Next by thread: Re: pseudoinverse
- Index(es):
Relevant Pages
|