Next: shift, Previous: setnan, Up: Internal Routines [Contents][Index]
sgn(data)
Returns for each element of data
the sign of the element:
+1
if the element is positive, -1
if the element is
negative, and 0
if the element is equal to zero.