yaw.core.math.sgn#

yaw.core.math.sgn(val: ArrayLike) ArrayLike[source]#

Compute the sign of a (array of) numbers, with positive numbers and 0 returning 1, negative number returning -1.