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)
| 3880 | |
| 3881 | @array_function_dispatch(_sometrue_dispatcher, verify=False) |
| 3882 | def 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 | |
| 3899 | def _alltrue_dispatcher(a, axis=None, out=None, keepdims=None, *, where=None): |