sign function

VARP sign(
  1. VARP x
)

Computes sign of x eltment-wise

sign(x) = 0 if x=0 sign(x) =-1 if x<0 sign(x) = 1 if x>0

Implementation

VARP sign(VARP x) => VARP.fromPointer(C.mnn_expr_Sign(x.ptr));