Utility Functions

Array API specification for utility functions.

A conforming implementation of the array API standard must provide and support the following functions.

Objects in API

all(x, /, *, axis=None, keepdims=False)

Tests whether all input array elements evaluate to True along a specified axis.

any(x, /, *, axis=None, keepdims=False)

Tests whether any input array element evaluates to True along a specified axis.

diff(x, /, *, axis=-1, n=1, prepend=None, append=None)

Calculates the n-th discrete forward difference along a specified axis.