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

Function _einsum_path_dispatcher

numpy/core/einsumfunc.py:696–703  ·  view source on GitHub ↗
(*operands, optimize=None, einsum_call=None)

Source from the content-addressed store, hash-verified

694
695
696def _einsum_path_dispatcher(*operands, optimize=None, einsum_call=None):
697 # NOTE: technically, we should only dispatch on array-like arguments, not
698 # subscripts (given as strings). But separating operands into
699 # arrays/subscripts is a little tricky/slow (given einsum's two supported
700 # signatures), so as a practical shortcut we dispatch on everything.
701 # Strings will be ignored for dispatching since they don't define
702 # __array_function__.
703 return operands
704
705
706@array_function_dispatch(_einsum_path_dispatcher, module='numpy')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected