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

Function _histogram2d_dispatcher

numpy/lib/twodim_base.py:625–640  ·  view source on GitHub ↗
(x, y, bins=None, range=None, density=None,
                            weights=None)

Source from the content-addressed store, hash-verified

623
624
625def _histogram2d_dispatcher(x, y, bins=None, range=None, density=None,
626 weights=None):
627 yield x
628 yield y
629
630 # This terrible logic is adapted from the checks in histogram2d
631 try:
632 N = len(bins)
633 except TypeError:
634 N = 1
635 if N == 2:
636 yield from bins # bins=[x, y]
637 else:
638 yield bins
639
640 yield weights
641
642
643@array_function_dispatch(_histogram2d_dispatcher)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected