summaryrefslogtreecommitdiff
path: root/numpy/matrixlib/defmatrix.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/matrixlib/defmatrix.py')
-rw-r--r--numpy/matrixlib/defmatrix.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/numpy/matrixlib/defmatrix.py b/numpy/matrixlib/defmatrix.py
index 08e867dea..1f5c94921 100644
--- a/numpy/matrixlib/defmatrix.py
+++ b/numpy/matrixlib/defmatrix.py
@@ -328,19 +328,6 @@ class matrix(N.ndarray):
def __rpow__(self, other):
return NotImplemented
- def __repr__(self):
- s = repr(self.__array__()).replace('array', 'matrix')
- # now, 'matrix' has 6 letters, and 'array' 5, so the columns don't
- # line up anymore. We need to add a space.
- l = s.splitlines()
- for i in range(1, len(l)):
- if l[i]:
- l[i] = ' ' + l[i]
- return '\n'.join(l)
-
- def __str__(self):
- return str(self.__array__())
-
def _align(self, axis):
"""A convenience function for operations that need to preserve axis
orientation.