sign
The signum function.
(y)=sign(x)
Inputs
x A real array.
Outputs
y An array of the size as the input, with y[i]=signum(x[i]) for each i .


Description
The signum function is 1 for positive inputs, -1 for negative inputs, and zero otherwise.