|
| template<domain D :shared2p , dim N> |
| D uint8 | abs (D int8 x) |
| |
| template<domain D :shared2p , dim N> |
| D uint16 | abs (D int16 x) |
| |
| template<domain D :shared2p , dim N> |
| D uint32 | abs (D int32 x) |
| |
| template<domain D :shared2p , dim N> |
| D uint | abs (D int x) |
| |
Function for finding absolute 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 all values are the absolute values of the input array at that position
◆ abs() [1/4]
template<domain D :shared2p , dim N>
◆ abs() [2/4]
template<domain D :shared2p , dim N>
| D uint16 abs |
( |
D int16 |
x | ) |
|
◆ abs() [3/4]
template<domain D :shared2p , dim N>
| D uint32 abs |
( |
D int32 |
x | ) |
|
◆ abs() [4/4]
template<domain D :shared2p , dim N>