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

Home » Public Forums » archive » Re: the (Moore-Penrose) pseudo-inverse of a matrix - anything like scipy.linalg's pinv2 in IDL?
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: the (Moore-Penrose) pseudo-inverse of a matrix - anything like scipy.linalg's pinv2 in IDL? [message #83774] Wed, 03 April 2013 06:52 Go to previous message
Russell Ryan is currently offline  Russell Ryan
Messages: 122
Registered: May 2012
Senior Member
On Wednesday, April 3, 2013 1:18:16 AM UTC-4, JP wrote:
> Hello IDLers,
>
>
>
> I am adapting a code from python to IDL and I got stuck with the pinv2 function: http://docs.scipy.org/doc/scipy/reference/generated/scipy.li nalg.pinv2.html
>
>
>
> It computes the Moore-Penrose pseudo-inverse of a matrix and I couldn't find anything similar in IDL.
>
>
>
> A search through this group pointed to a post 10 years old where Paul van Delst Lars shared his svd_matrix_invert function (link to post: https://groups.google.com/d/msg/comp.lang.idl-pvwave/NNzCI4h MUP4/n9UzWjazT3YJ )
>
>
>
> Is that an equivalent to the scipy pinv2 i am looking for? And if so, I will appreciate if someone will better algebra skills than me (likely 95% of this community) could suggest how to introduce the rcond keyword available in pinv2.
>
>
>
> thanks a lot.
>
>
>
> JP


I just read the Wikipedia article on Moore-Penrose Inverses. Sounds like you can just do an SVD then operate on the Sigma matrix and the resulting A+ matrix. I'm unaware of any existing IDL code to do this. There are two routines to do the SVD included in the standard distro.

-Russell
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Problem with logarithmic axes using AXIS IDL command
Next Topic: Re: Vector representation of data.

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

Current Time: Wed Oct 08 15:59:40 PDT 2025

Total time taken to generate the page: 0.00458 seconds