is_ones
Method of BoolArray.
Overloads
| Name | Description |
|---|---|
is_ones() -> bool | Returns true if all elements of the BoolArray lhs are 1. |
is_ones(bool tolerance) -> bool | Returns true if all elements of the BoolArray lhs are approximately 1, within the specified tolerance. |
is_ones() -> bool
Returns true if all elements of the BoolArray lhs are 1.
is_ones(bool tolerance) -> bool
Returns true if all elements of the BoolArray lhs are approximately 1, within the specified tolerance.
Parameters
- tolerance: The tolerance to use for comparison.