|
inlineconstexpr |
Computes the elementwise composition of a value with the magnitude of the first parameter and the bit of sign of the second one.
Defined in Header
Parameters
x
, y
: real arguments.Return value
The value of the elementwise composition of a value with the magnitude of x
and the bit of sign of y
is returned.
Masked Call
The call eve::copysign[mask](x, ...)
provides a masked version of copysign
which is equivalent to if_else(mask, copysign(x, ...), x)
Example