comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » diagonal dominant
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: diagonal dominant [message #83024 is a reply to message #82949] Thu, 31 January 2013 05:26 Go to previous messageGo to previous message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
Den torsdagen den 31:e januari 2013 kl. 14:05:46 UTC+1 skrev Gompie:
>> Can you describe how you are using the SVD to solve your equation? You have mentioned calculating the inverse of A but that is not necessary. From what I've read, it is better to multiply the B vector by the inverse SVD components in succession than calculating the inverse of A and then multiplying B with that
>
>
>
> I am now using
>
>
>
> svdc,A ,w,u,v,/double
>
> X=SVSOL(U, W, V, rhs,/double), Here A is 255X400 matrix and the duplicate rows have not been removed. Do you think I should do it differently?

From the documentation of svsol: "An n-element vector containing "singular values." Normally, W is returned from the SVDC procedure. Small values (close to machine floating-point precision) should be set to zero prior to calling SVSOL."

You don't mention doing this so I assume you don't. This is a crucial step if you want to be able to handle singular or near-singular matrices.

Note also that another source of confusion is the way the A matrix is represented in IDL. I don't know what conventions you are using but SVDC assumes row-major. You can change that with the COLUMN keyword.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to label longitude?
Next Topic: equivalent width measure in idl

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 09:01:42 PDT 2025

Total time taken to generate the page: 1.36372 seconds