Test whether all data array elements evaluate to True.
Performs a logical and over the data array and returns the result. Masked values are considered as True during computation.
Returns : |
---|
Examples
>>> print d.array
[[0 3 0]]
>>> d.all()
False
>>> print d.array
[[1 3 --]]
>>> d.all()
True
>>> print d.array
[[-- -- --]]
>>> d.all()
True