MCPcopy Create free account
hub / github.com/dask/dask / _block_histogramdd_rect

Function _block_histogramdd_rect

dask/array/routines.py:1144–1157  ·  view source on GitHub ↗

Call numpy.histogramdd for a blocked/chunked calculation. Slurps the result into an additional outer axis; this new axis will be used to stack chunked calls of the numpy function and add them together later. Returns ------- :py:object:`np.ndarray` NumPy array with a

(sample, bins, range, weights)

Source from the content-addressed store, hash-verified

1142
1143
1144def _block_histogramdd_rect(sample, bins, range, weights):
1145 """Call numpy.histogramdd for a blocked/chunked calculation.
1146
1147 Slurps the result into an additional outer axis; this new axis
1148 will be used to stack chunked calls of the numpy function and add
1149 them together later.
1150
1151 Returns
1152 -------
1153 :py:object:`np.ndarray`
1154 NumPy array with an additional outer dimension.
1155
1156 """
1157 return np.histogramdd(sample, bins, range=range, weights=weights)[0:1]
1158
1159
1160def _block_histogramdd_multiarg(*args):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected