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

Function _block_dispatcher

numpy/core/shape_base.py:692–700  ·  view source on GitHub ↗
(arrays)

Source from the content-addressed store, hash-verified

690
691
692def _block_dispatcher(arrays):
693 # Use type(...) is list to match the behavior of np.block(), which special
694 # cases list specifically rather than allowing for generic iterables or
695 # tuple. Also, we know that list.__array_function__ will never exist.
696 if type(arrays) is list:
697 for subarrays in arrays:
698 yield from _block_dispatcher(subarrays)
699 else:
700 yield arrays
701
702
703@array_function_dispatch(_block_dispatcher)

Callers 1

test_block_dispatcherFunction · 0.90

Calls

no outgoing calls

Tested by 1

test_block_dispatcherFunction · 0.72