Skip to content

Commit faab53a

Browse files
Fixed deprecation notices
1 parent e922abb commit faab53a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mkl_random/mklrand.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1953,7 +1953,7 @@ cdef class RandomState:
19531953
raise ValueError("Fewer non-zero entries in p than size")
19541954
n_uniq = 0
19551955
p = p.copy()
1956-
found = np.zeros(shape, dtype=np.int)
1956+
found = np.zeros(tuple() if shape is None else shape, dtype=np.int64)
19571957
flat_found = found.ravel()
19581958
while n_uniq < size:
19591959
x = self.rand(size - n_uniq)
@@ -5250,7 +5250,7 @@ cdef class RandomState:
52505250
[True, True]
52515251
52525252
"""
5253-
from numpy.dual import svd
5253+
from numpy.linalg import svd
52545254

52555255
# Check preconditions on arguments
52565256
mean = np.array(mean)

0 commit comments

Comments
 (0)