Check if input is negative.
More...
Check if input is negative.
- Note
- This function supports real inputs only. Complex inputs are not yet supported.
◆ sign()
C++ Interface for getting the sign of input.
- Parameters
-
- Returns
- the sign of each element of input
- Note
- output is 1 for negative numbers and 0 for positive numbers