nimble.match.allPositive¶
- nimble.match.allPositive(data)¶
Determine if all values in the data are greater than zero.
Return True if every value in the data is greater than zero. Positive values include any numeric value greater than zero.
- Parameters:
data (Nimble Base object)
- Returns:
bool
See also
Examples
>>> lst = [[1, 2, 3], ... [1, 2, 3], ... [1.0, 2.0, 3.0]] >>> X = nimble.data(lst) >>> allPositive(X) True
>>> lst = [[1, 2, 3], ... [1, 2, 3], ... [0.0, 2.0, 3.0]] >>> X = nimble.data(lst) >>> allPositive(X) False