|
inlineconstexpr |
Computes the nth next representable element.
Defined in Header
Parameters
x
: floating argument.n
: integral value argument.Return value
The value of the nth representable value greater than x
is returned. If n
is zero returns x
.
Masked Call
The call eve::next[mask](x, ...)
provides a masked version of next
which is equivalent to if_else(mask, next(x, ...), x)
Example
The call eve::pedantic(eve::next)(x, ...)
provides a pedantic version of next
which ensures that the successor of eve::mzero is eve::zero for floating points entries
Example
The call eve::pedantic(eve::next)(x, ...)
provides a pedantic version of next
which ensures that eve::minf and eve::nan are fixed points.
Example