|
inlineconstexpr |
Returns a logical true if and only if the element value of the first parameter is less than the second one.
Defined in Header
Parameters
x
, y
: argument.Return value
The call eve::is_less(x,y)
is semantically equivalent to x < y
:
Masked Call
The call eve;is_less[mask](x,y)
provides a masked version of eve::is_less
which is equivalent to if_else (mask, is_less(x), eve::false( eve::as(x,y)))
.
Example
definitely
The expression definitely(is_less)(x, y, t)
where x
and y
must be floating point values, evals to true if and only if x
is definitely less than y
. This means that:
t
is a floating_value then \(x < y - t \max(|x|, |y|)\)t
is a positive integral_value then \(x < \mbox{prev}(y, t)\);t
is omitted then the tolerance t
default to 3*eps(as(x))
.Example