[Numpy-discussion] Matrix powers

Nils Wagner nwagner@iam.uni-stuttgart...
Sun Apr 6 04:01:06 CDT 2008


On Sun, 06 Apr 2008 10:55:35 +0200
  "Nils Wagner" <nwagner@iam.uni-stuttgart.de> 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



More information about the Numpy-discussion mailing list