summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2020-01-21 10:06:33 +1100
committerGitHub <noreply@github.com>2020-01-21 10:06:33 +1100
commitb753aa7a3a2c958e70826fb8af3b56db5c758819 (patch)
tree4ddac99a9ec69f382eb357cc654fc1b198dc5fb0
parentb24c9cc91dfefd6471a97776f5f6e87d4c74238e (diff)
parent0dfec2e3fab097d08be30471287be085cbfb53e3 (diff)
downloadnumpy-b753aa7a3a2c958e70826fb8af3b56db5c758819.tar.gz
Merge pull request #15353 from alexhenrie/random
MAINT: Remove unnecessary calls to PyArray_DATA from binomial functions
-rw-r--r--numpy/random/_generator.pyx1
-rw-r--r--numpy/random/mtrand.pyx1
2 files changed, 0 insertions, 2 deletions
diff --git a/numpy/random/_generator.pyx b/numpy/random/_generator.pyx
index 5cd699ac7..32eda25f7 100644
--- a/numpy/random/_generator.pyx
+++ b/numpy/random/_generator.pyx
@@ -2919,7 +2919,6 @@ cdef class Generator:
it = np.PyArray_MultiIterNew2(p_arr, n_arr)
randoms = <np.ndarray>np.empty(it.shape, np.int64)
- randoms_data = <np.int64_t *>np.PyArray_DATA(randoms)
cnt = np.PyArray_SIZE(randoms)
it = np.PyArray_MultiIterNew3(randoms, p_arr, n_arr)
diff --git a/numpy/random/mtrand.pyx b/numpy/random/mtrand.pyx
index a4d409f37..95921a8ea 100644
--- a/numpy/random/mtrand.pyx
+++ b/numpy/random/mtrand.pyx
@@ -3356,7 +3356,6 @@ cdef class RandomState:
it = np.PyArray_MultiIterNew2(p_arr, n_arr)
randoms = <np.ndarray>np.empty(it.shape, int)
- randoms_data = <long *>np.PyArray_DATA(randoms)
cnt = np.PyArray_SIZE(randoms)
it = np.PyArray_MultiIterNew3(randoms, p_arr, n_arr)