MCPcopy Create free account
hub / github.com/Kitware/VTK / all

Function all

Wrapping/Python/vtkmodules/numpy_interface/algorithms.py:488–496  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

486
487@deprecated(version="9.6", message="Use np.all() instead of algs.all().")
488def 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
498def _local_array_count(array, axis):
499

Callers 2

GetPointsMethod · 0.70
pointsMethod · 0.50

Calls 1

allMethod · 0.45

Tested by

no test coverage detected