MCPcopy Create free account
hub / github.com/numpy/numpy / _histogramdd_dispatcher

Function _histogramdd_dispatcher

numpy/lib/histograms.py:890–898  ·  view source on GitHub ↗
(sample, bins=None, range=None, density=None,
                            weights=None)

Source from the content-addressed store, hash-verified

888
889
890def _histogramdd_dispatcher(sample, bins=None, range=None, density=None,
891 weights=None):
892 if hasattr(sample, 'shape'): # same condition as used in histogramdd
893 yield sample
894 else:
895 yield from sample
896 with contextlib.suppress(TypeError):
897 yield from bins
898 yield weights
899
900
901@array_function_dispatch(_histogramdd_dispatcher)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected