nimble.match.allNegative

nimble.match.allNegative(data)

Determine if all values in the data are less than zero.

Return True if every value in the data is less than zero. Negative values include any numeric value less than zero.

Parameters:

data (Nimble Base object)

Returns:

bool

See also

anyNegative, negative

Examples

>>> lst = [[-1, -2, -3],
...        [-1, -2, -3],
...        [-1.0, -2.0, -3.0]]
>>> X = nimble.data(lst)
>>> allNegative(X)
True
>>> lst = [[-1, -2, -3],
...        [-1, -2, -3],
...        [0.0, -2.0, -3.0]]
>>> X = nimble.data(lst)
>>> allNegative(X)
False