Matrix powers

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Matrix powers

Nils Wagner-2
Hi all,

I tried to use the new function matrix_power, but I can't
find it.

>>> matrix_power(array([[0,1],[-1,0]]),10)
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
NameError: name 'matrix_power' is not defined
>>> numpy.__version__
'1.0.5.dev4968'

Am I missing something ?

Nils
_______________________________________________
Numpy-discussion mailing list
[hidden email]
http://projects.scipy.org/mailman/listinfo/numpy-discussion
Reply | Threaded
Open this post in threaded view
|

Re: Matrix powers

Nils Wagner-2
On Sun, 06 Apr 2008 10:55:35 +0200
  "Nils Wagner" <[hidden email]> wrote:

> Hi all,
>
> I tried to use the new function matrix_power, but I
>can't
> find it.
>
>>>> matrix_power(array([[0,1],[-1,0]]),10)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> NameError: name 'matrix_power' is not defined
>>>> numpy.__version__
> '1.0.5.dev4968'
>
> Am I missing something ?
>
> Nils

Oops, I have missed

from numpy.linalg import matrix_power

Sorry for the noise.

  Nils

_______________________________________________
Numpy-discussion mailing list
[hidden email]
http://projects.scipy.org/mailman/listinfo/numpy-discussion