bundles / numpy latest / numpy / _ArrayFunctionDispatcher
class
numpy:_ArrayFunctionDispatcher
source: /dev/numpy/build-install/usr/lib/python3.14/site-packages/numpy/__init__.py
Summary
Class to wrap functions with checks for __array_function__ overrides.
Extended Summary
All arguments are required, and can only be passed by position.
Parameters
dispatcher: function or NoneThe dispatcher function that returns a single sequence-like object of all arguments relevant. It must have the same signature (except the default values) as the actual implementation. If
None, this is alike=dispatcher and the_ArrayFunctionDispatchermust be called withlikeas the first (additional and positional) argument.implementation: functionFunction that implements the operation on NumPy arrays without overrides. Arguments passed calling the
_ArrayFunctionDispatcherwill be forwarded to this (and thedispatcher) as if using*args, **kwargs.
Attributes
_implementation: functionThe original implementation passed in.
Aliases
-
numpy._core._multiarray_umath._ArrayFunctionDispatcher