Return the value with the magnitude of x and the sign of y, element-wise.
The sign is read from the sign bit of y, so -0 counts as negative, and a zero or NaN y still keeps the magnitude of x.
y
-0
x
Return the value with the magnitude of x and the sign of y, element-wise.
The sign is read from the sign bit of
y, so-0counts as negative, and a zero or NaNystill keeps the magnitude ofx.