Skip to main content

is_ones

Method of RealArray.

Overloads

NameDescription
is_ones() -> boolReturns true if all elements of the RealArray lhs are 1.
is_ones(real tolerance) -> boolReturns true if all elements of the RealArray lhs are approximately 1, within the specified tolerance.

is_ones() -> bool

Returns true if all elements of the RealArray lhs are 1.

is_ones(real tolerance) -> bool

Returns true if all elements of the RealArray lhs are approximately 1, within the specified tolerance.

Parameters

  • tolerance: The tolerance to use for comparison.