diff options
-rw-r--r-- | numpy/matrixlib/defmatrix.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/matrixlib/defmatrix.py b/numpy/matrixlib/defmatrix.py index 66156a4b6..2d785e213 100644 --- a/numpy/matrixlib/defmatrix.py +++ b/numpy/matrixlib/defmatrix.py @@ -3,6 +3,7 @@ from __future__ import division, absolute_import, print_function __all__ = ['matrix', 'bmat', 'mat', 'asmatrix'] import sys +from numpy import core import numpy.core.numeric as N from numpy.core.numeric import concatenate, isscalar, binary_repr, identity, asanyarray from numpy.core.numerictypes import issubdtype @@ -943,7 +944,7 @@ class matrix(N.ndarray): This returns a matrix. """ - return np.core.multiarray.ndarray.ravel(self) + return core.multiarray.ndarray.ravel(self) def getT(self): |