sign
Overloads
| Name | Description |
|---|---|
sign(const ComplexArray arr) -> ComplexArray | Computes the sign (-1, 0, or 1) of the ComplexArray arr element-wise. |
sign(const RealArray arr) -> RealArray | Computes the sign (-1, 0, or 1) of the RealArray arr element-wise. |
sign(const IntegerArray arr) -> IntegerArray | Computes the sign (-1, 0, or 1) of the IntegerArray arr element-wise. |
sign(const ComplexArray arr) -> ComplexArray
Computes the sign (-1, 0, or 1) of the ComplexArray arr element-wise.
Parameters
- arr: The input ComplexArray.
sign(const RealArray arr) -> RealArray
Computes the sign (-1, 0, or 1) of the RealArray arr element-wise.
Parameters
- arr: The input RealArray.
sign(const IntegerArray arr) -> IntegerArray
Computes the sign (-1, 0, or 1) of the IntegerArray arr element-wise.
Parameters
- arr: The input IntegerArray.