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

Function all

numpy/array_api/_utility_functions.py:10–22  ·  view source on GitHub ↗

Array API compatible wrapper for :py:func:`np.all `. See its docstring for more information.

(
    x: Array,
    /,
    *,
    axis: Optional[Union[int, Tuple[int, ...]]] = None,
    keepdims: bool = False,
)

Source from the content-addressed store, hash-verified

8
9
10def all(
11 x: Array,
12 /,
13 *,
14 axis: Optional[Union[int, Tuple[int, ...]]] = None,
15 keepdims: bool = False,
16) -> Array:
17 """
18 Array API compatible wrapper for :py:func:`np.all <numpy.all>`.
19
20 See its docstring for more information.
21 """
22 return Array._new(np.asarray(np.all(x._array, axis=axis, keepdims=keepdims)))
23
24
25def any(

Callers 2

test_asarray_copyFunction · 0.50
test_device_propertyFunction · 0.50

Calls 2

_newMethod · 0.80
allMethod · 0.45

Tested by 2

test_asarray_copyFunction · 0.40
test_device_propertyFunction · 0.40