summaryrefslogtreecommitdiff
path: root/numpy/random
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/random')
-rw-r--r--numpy/random/_generator.pyx6
-rw-r--r--numpy/random/mtrand.pyx2
2 files changed, 4 insertions, 4 deletions
diff --git a/numpy/random/_generator.pyx b/numpy/random/_generator.pyx
index 27cb2859e..274dba8c4 100644
--- a/numpy/random/_generator.pyx
+++ b/numpy/random/_generator.pyx
@@ -3502,14 +3502,14 @@ cdef class Generator:
# GH10839, ensure double to make tol meaningful
cov = cov.astype(np.double)
if method == 'svd':
- from numpy.dual import svd
+ from numpy.linalg import svd
(u, s, vh) = svd(cov)
elif method == 'eigh':
- from numpy.dual import eigh
+ from numpy.linalg import eigh
# could call linalg.svd(hermitian=True), but that calculates a vh we don't need
(s, u) = eigh(cov)
else:
- from numpy.dual import cholesky
+ from numpy.linalg import cholesky
l = cholesky(cov)
# make sure check_valid is ignored whe method == 'cholesky'
diff --git a/numpy/random/mtrand.pyx b/numpy/random/mtrand.pyx
index 0c0c611af..6f2ba871c 100644
--- a/numpy/random/mtrand.pyx
+++ b/numpy/random/mtrand.pyx
@@ -4049,7 +4049,7 @@ cdef class RandomState:
[True, True] # random
"""
- from numpy.dual import svd
+ from numpy.linalg import svd
# Check preconditions on arguments
mean = np.array(mean)