diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2018-03-26 00:40:53 -0700 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2018-04-06 16:26:05 -0700 |
commit | c8a5f560f1eedd510ca5656b06dd1ca2ba9322bd (patch) | |
tree | c6ffa6ac37e2b278c58765d677169df1c4998679 /numpy/lib/histograms.py | |
parent | 79e482a410dfb3dcdc47f409c1ef76826f00a98d (diff) | |
download | numpy-c8a5f560f1eedd510ca5656b06dd1ca2ba9322bd.tar.gz |
BUG: Use intp for indices
Fixes gh-8531
Diffstat (limited to 'numpy/lib/histograms.py')
-rw-r--r-- | numpy/lib/histograms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/histograms.py b/numpy/lib/histograms.py index bd2f80186..66e2ccda1 100644 --- a/numpy/lib/histograms.py +++ b/numpy/lib/histograms.py @@ -927,7 +927,7 @@ def histogramdd(sample, bins=10, range=None, normed=False, weights=None): # Compute the sample indices in the flattened histogram matrix. ni = nbin.argsort() - xy = np.zeros(N, int) + xy = np.zeros(N, np.intp) for i in np.arange(0, D-1): xy += Ncount[ni[i]] * nbin[ni[i+1:]].prod() xy += Ncount[ni[-1]] |