diff options
author | Alan McIntyre <alan.mcintyre@local> | 2008-07-02 01:15:06 +0000 |
---|---|---|
committer | Alan McIntyre <alan.mcintyre@local> | 2008-07-02 01:15:06 +0000 |
commit | aa26afb8fbb6901bed42e895e410728b0dd1f6bc (patch) | |
tree | ce60c447f698888c62300b3fa0aaba83b3b7b9a7 /numpy/core/defmatrix.py | |
parent | bc01c96daf61de61046c5ac7d17a80ab35ccd0ef (diff) | |
download | numpy-aa26afb8fbb6901bed42e895e410728b0dd1f6bc.tar.gz |
Update doctests to use the implicit "import numpy as np" made available
to all doctests.
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] |