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

Function alltrue

numpy/core/fromnumeric.py:3908–3920  ·  view source on GitHub ↗

Check if all elements of input array are true. .. deprecated:: 1.25.0 ``alltrue`` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `all` instead. See Also -------- numpy.all : Equivalent function; see for details.

(*args, **kwargs)

Source from the content-addressed store, hash-verified

3906
3907@array_function_dispatch(_alltrue_dispatcher, verify=False)
3908def alltrue(*args, **kwargs):
3909 """
3910 Check if all elements of input array are true.
3911
3912 .. deprecated:: 1.25.0
3913 ``alltrue`` is deprecated as of NumPy 1.25.0, and will be
3914 removed in NumPy 2.0. Please use `all` instead.
3915
3916 See Also
3917 --------
3918 numpy.all : Equivalent function; see for details.
3919 """
3920 return all(*args, **kwargs)

Callers 2

test_reduceMethod · 0.90
test_reduceMethod · 0.85

Calls 1

allFunction · 0.70

Tested by 2

test_reduceMethod · 0.72
test_reduceMethod · 0.68