|
inlineconstexpr |
Returns a logical true if and only if the element value of the first parameter is greater than the second one.
Defined in Header
Parameters
x
, y
: argument.Return value
The call eve::is_greater(x,y)
is semantically equivalent to x > y
:
Masked Call
The call eve;is_greater[mask](x,y)
provides a masked version of eve::is_greater
which is equivalent to if_else (mask, is_greater(x), eve::false( eve::as(x,y)))
.
Example
definitely
The expression definitely(is_greater)(x, y, t)
where x
and y
must be floating point values, evals to true if and only if x
is definitely greater 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{next}(y, t)\);t
is omitted then the tolerance t
default to 3*eps(as(x))
.Example