summaryrefslogtreecommitdiff
path: root/numpy/core/defmatrix.py
diff options
context:
space:
mode:
authorAlan McIntyre <alan.mcintyre@local>2008-06-23 08:24:48 +0000
committerAlan McIntyre <alan.mcintyre@local>2008-06-23 08:24:48 +0000
commitec51473cf920ae6007bf69337eff7e7139c466c6 (patch)
treed9f90e40ed1198d4fd931e9e8d4fe1a49c4b6979 /numpy/core/defmatrix.py
parent008bb901bc7e73f63d26f5a8cde34401603ae820 (diff)
downloadnumpy-ec51473cf920ae6007bf69337eff7e7139c466c6.tar.gz
Fixed imports for doctests.
Removed ">>>" from sample code in defmatrix.py:bmat that was intended only as an example, not as a doctest.
Diffstat (limited to 'numpy/core/defmatrix.py')
-rw-r--r--numpy/core/defmatrix.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/numpy/core/defmatrix.py b/numpy/core/defmatrix.py
index ba085bfad..b577df4a6 100644
--- a/numpy/core/defmatrix.py
+++ b/numpy/core/defmatrix.py
@@ -84,6 +84,7 @@ def matrix_power(M,n):
Examples
--------
+ >>> from numpy import array
>>> matrix_power(array([[0,1],[-1,0]]),10)
array([[-1, 0],
[ 0, -1]])
@@ -539,9 +540,9 @@ def bmat(obj, ldict=None, gdict=None):
Examples
--------
- >>> F = bmat('A, B; C, D')
- >>> F = bmat([[A,B],[C,D]])
- >>> F = bmat(r_[c_[A,B],c_[C,D]])
+ F = bmat('A, B; C, D')
+ F = bmat([[A,B],[C,D]])
+ F = bmat(r_[c_[A,B],c_[C,D]])
All of these produce the same matrix::