{ } Raw JSON

bundles / numpy 2.4.4 / numpy / _ArrayFunctionDispatcher

class

numpy:_ArrayFunctionDispatcher

source: /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 None

The 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 a like= dispatcher and the _ArrayFunctionDispatcher must be called with like as the first (additional and positional) argument.

implementation : function

Function that implements the operation on NumPy arrays without overrides. Arguments passed calling the _ArrayFunctionDispatcher will be forwarded to this (and the dispatcher) as if using *args, **kwargs.

Attributes

_implementation : function

The original implementation passed in.

Aliases

  • numpy._core._multiarray_umath._ArrayFunctionDispatcher