diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2017-12-06 01:11:29 -0800 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2017-12-06 08:53:52 -0800 |
commit | d542d141f0667abd3501b48b38de245d5bbba4e1 (patch) | |
tree | 36dc4c8a59b5ec8e962e2e93c61a5b3bd172724f /numpy/matrixlib/defmatrix.py | |
parent | afad5902f2e5086c9c30bdad8a21561e3188d816 (diff) | |
download | numpy-d542d141f0667abd3501b48b38de245d5bbba4e1.tar.gz |
MAINT: Remove now-unnecessary implementation of matrix str/repr
Diffstat (limited to 'numpy/matrixlib/defmatrix.py')
-rw-r--r-- | numpy/matrixlib/defmatrix.py | 13 |
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. |