|
inlineconstexpr |
Computes the sign of the parameter.
Defined in Header
Parameters
x
: argument.Return value
x
.x
, the call is semantically equivalent to:Nan
, the result is Nan
value containing the elementwise sign of x
if it is representable in this type.
Masked Call
The call eve;sign[mask](x)
provides a masked version of eve::sign
which is equivalent to if_else (mask, sign(x), x)
.
Example