We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e922abb commit faab53aCopy full SHA for faab53a
mkl_random/mklrand.pyx
@@ -1953,7 +1953,7 @@ cdef class RandomState:
1953
raise ValueError("Fewer non-zero entries in p than size")
1954
n_uniq = 0
1955
p = p.copy()
1956
- found = np.zeros(shape, dtype=np.int)
+ found = np.zeros(tuple() if shape is None else shape, dtype=np.int64)
1957
flat_found = found.ravel()
1958
while n_uniq < size:
1959
x = self.rand(size - n_uniq)
@@ -5250,7 +5250,7 @@ cdef class RandomState:
5250
[True, True]
5251
5252
"""
5253
- from numpy.dual import svd
+ from numpy.linalg import svd
5254
5255
# Check preconditions on arguments
5256
mean = np.array(mean)
0 commit comments