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

Function sometrue

numpy/core/fromnumeric.py:3882–3896  ·  view source on GitHub ↗

Check whether some values are true. Refer to `any` for full documentation. .. deprecated:: 1.25.0 ``sometrue`` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `any` instead. See Also -------- any : equivalent function; see fo

(*args, **kwargs)

Source from the content-addressed store, hash-verified

3880
3881@array_function_dispatch(_sometrue_dispatcher, verify=False)
3882def sometrue(*args, **kwargs):
3883 """
3884 Check whether some values are true.
3885
3886 Refer to `any` for full documentation.
3887
3888 .. deprecated:: 1.25.0
3889 ``sometrue`` is deprecated as of NumPy 1.25.0, and will be
3890 removed in NumPy 2.0. Please use `any` instead.
3891
3892 See Also
3893 --------
3894 any : equivalent function; see for details.
3895 """
3896 return any(*args, **kwargs)
3897
3898
3899def _alltrue_dispatcher(a, axis=None, out=None, keepdims=None, *, where=None):

Callers 2

test_reduceMethod · 0.90
test_reduceMethod · 0.85

Calls 1

anyFunction · 0.70

Tested by 2

test_reduceMethod · 0.72
test_reduceMethod · 0.68