diff options
Diffstat (limited to 'numpy/core/defmatrix.py')
-rw-r--r-- | numpy/core/defmatrix.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/numpy/core/defmatrix.py b/numpy/core/defmatrix.py index b577df4a6..2008ba62e 100644 --- a/numpy/core/defmatrix.py +++ b/numpy/core/defmatrix.py @@ -84,8 +84,7 @@ def matrix_power(M,n): Examples -------- - >>> from numpy import array - >>> matrix_power(array([[0,1],[-1,0]]),10) + >>> np.linalg.matrix_power(np.array([[0,1],[-1,0]]),10) array([[-1, 0], [ 0, -1]]) """ @@ -149,7 +148,6 @@ class matrix(N.ndarray): Examples -------- - >>> import numpy as np >>> a = np.matrix('1 2; 3 4') >>> print a [[1 2] |