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

Function _piecewise_dispatcher

numpy/lib/function_base.py:635–639  ·  view source on GitHub ↗
(x, condlist, funclist, *args, **kw)

Source from the content-addressed store, hash-verified

633
634
635def _piecewise_dispatcher(x, condlist, funclist, *args, **kw):
636 yield x
637 # support the undocumented behavior of allowing scalars
638 if np.iterable(condlist):
639 yield from condlist
640
641
642@array_function_dispatch(_piecewise_dispatcher)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected