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

Home » Public Forums » archive » Re: MATRIX LOGARITHM (and EXPONENTIAL)
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: MATRIX LOGARITHM (and EXPONENTIAL) [message #92178 is a reply to message #92161] Fri, 23 October 2015 10:52 Go to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Wednesday, October 21, 2015 at 5:04:18 PM UTC-6, zhaob...@gmail.com wrote:
> On Thursday, January 27, 2011 at 5:11:53 PM UTC-7, James wrote:
>> On Jan 27, 4:10 pm, James <donje...@gmail.com> wrote:
>>>
>>> If the matrix A is diagonalizable, then:
>>>
>>> eigenvals = LA_EIGENPROBLEM(A, EIGENVECTORS=evecs)
>>> expA = evecs # diag_matrix(exp(eigenvals)) # invert(evecs)
>>> logA = evecs # diag_matrix(alog(eigenvals)) # invert(evecs)
>>
>> sorry, replace INVERT with LA_INVERT to account for complex
>> eigenvectors.
>
> Does logA need to be transposed?
> My way was,
> evens = transpose(evens)
> logA = evecs ## diag_matrix(eigenvalues) ## invert(evecs)
> result of this way seems to be transpose of result of your way.
>
> Thanks

Or, you could use the Python bridge:

la = Python.Import('scipy.linalg')
expm = la.expm(A)
logm = la.logm(A)

-Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Read irregular data problem
Next Topic: Display of hyperspectral image in the window of a specified size

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

Current Time: Wed Oct 08 13:54:58 PDT 2025

Total time taken to generate the page: 0.00446 seconds