Returns True if all values of an array evaluate to True, returns False otherwise. This is useful to check if all values of an array match a certain condition such as: algorithms.all(array > 5)
(array, axis=None, controller=None)
| 486 | |
| 487 | @deprecated(version="9.6", message="Use np.all() instead of algs.all().") |
| 488 | def all(array, axis=None, controller=None): |
| 489 | """Returns True if all values of an array evaluate to True, returns |
| 490 | False otherwise. |
| 491 | This is useful to check if all values of an array match a certain |
| 492 | condition such as: |
| 493 | |
| 494 | algorithms.all(array > 5) |
| 495 | """ |
| 496 | return npalgs.all(array, axis, controller) |
| 497 | |
| 498 | def _local_array_count(array, axis): |
| 499 |