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