From 7bfa929d3ce90f647dd4e4e228312491df517928 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 31 Jul 2014 19:25:39 -0400 Subject: MAINT: fix the import --- numpy/matrixlib/defmatrix.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'numpy/matrixlib') 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): -- cgit v1.2.1