def sign(x):
    if not isinstance(x, np.ndarray):
        return gp.sign(x)
    else:
        return np.sign(x)
Returns an element-wise indication of the sign of a number.
dataset/ETHPy150Open BRML/climin/climin/mathadapt.py/sign