From e95fcba32f123dc3ea6e23f533fedf5aee64815e Mon Sep 17 00:00:00 2001 From: Warren Weckesser Date: Mon, 4 May 2020 19:04:20 -0400 Subject: DEP: Deprecate `numpy.dual`. Add a deprecation warning in the `numpy.dual` module, and remove the use of `numpy.dual` from the few places where it is used in the numpy code. --- numpy/matrixlib/defmatrix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/matrixlib/defmatrix.py') diff --git a/numpy/matrixlib/defmatrix.py b/numpy/matrixlib/defmatrix.py index d1a1211aa..ac7d472bc 100644 --- a/numpy/matrixlib/defmatrix.py +++ b/numpy/matrixlib/defmatrix.py @@ -829,9 +829,9 @@ class matrix(N.ndarray): """ M, N = self.shape if M == N: - from numpy.dual import inv as func + from numpy.linalg import inv as func else: - from numpy.dual import pinv as func + from numpy.linalg import pinv as func return asmatrix(func(self)) @property -- cgit v1.2.1