On an element-wise basis, computes the signum function (sign) of the input; zero if the input is zero, 1 if the input is greater than zero, -1 if the input is less than zero.
Usage | Returns |
---|---|
Array.signum() | Array |
Argument | Type | Details |
---|---|---|
this: input | Array | The input array. |