|
| template<domain D :shared2p , dim N> |
| D int8 | sign (D int8 x) |
| |
| template<domain D :shared2p , dim N> |
| D int16 | sign (D int16 x) |
| |
| template<domain D :shared2p , dim N> |
| D int32 | sign (D int32 x) |
| |
| template<domain D :shared2p , dim N> |
| D int | sign (D int x) |
| |
Function for determining the sign of values.
- Note
- D - shared2p protection domain
-
Supported types - int8 / int16 / int32 / int
- Parameters
-
| x | - an array of any dimension |
- Returns
- returns an array of equal shape, size and dimension, where -1 signifies that, in the input array at that position was a negative number and 1 that it was a positive number
◆ sign() [1/4]
template<domain D :shared2p , dim N>
◆ sign() [2/4]
template<domain D :shared2p , dim N>
| D int16 sign |
( |
D int16 |
x | ) |
|
◆ sign() [3/4]
template<domain D :shared2p , dim N>
| D int32 sign |
( |
D int32 |
x | ) |
|
◆ sign() [4/4]
template<domain D :shared2p , dim N>