nimble.match.allZero¶
- nimble.match.allZero(data)¶
Determine if all values in the data are zero.
Return True if every value in the data is zero. Zero values include any numeric value equal to zero.
- Parameters:
data (Nimble Base object)
- Returns:
bool
Examples
>>> lst = [[0, 0.0, 0], ... [0, 0.0, 0], ... [0, 0.0, 0]] >>> X = nimble.data(lst) >>> allZero(X) True
>>> lst = [[0, 0.0, 0], ... [0, 0.0, 0], ... [0, 0.0, 1]] >>> X = nimble.data(lst) >>> allZero(X) False