summaryrefslogtreecommitdiff
path: root/numpy/matrixlib/defmatrix.py
diff options
context:
space:
mode:
authorWarren Weckesser <warren.weckesser@gmail.com>2020-05-04 19:04:20 -0400
committerWarren Weckesser <warren.weckesser@gmail.com>2020-05-04 19:07:27 -0400
commite95fcba32f123dc3ea6e23f533fedf5aee64815e (patch)
treec2e7750ebb1950373fb14a41ed36eeacf41bbd21 /numpy/matrixlib/defmatrix.py
parent30bf46c0538266ade0ac0e1a18486a226196b738 (diff)
downloadnumpy-e95fcba32f123dc3ea6e23f533fedf5aee64815e.tar.gz
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.
Diffstat (limited to 'numpy/matrixlib/defmatrix.py')
-rw-r--r--numpy/matrixlib/defmatrix.py4
1 files changed, 2 insertions, 2 deletions
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