[SciPy-User] raising a matrix to float power

Alexey Brazhe brazhe@gmail....
Sat Jul 10 18:26:11 CDT 2010


Hi,
I failed to find a way to raise a matrix to a non-integer power in
numpy/scipy

In Octave/Matlab, one would write M^0.5 to get the result
whereas in numpy
>>> maxtrix(M, 0.5)
raises the "TypeError: exponent must be an integer"

Is there a way to do matrix exponentiation to non-integer powers in numpy or
scipy?

Hope the answer is positive :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20100711/e17506a8/attachment.html 


More information about the SciPy-User mailing list