|
| template<domain D :shared3p , dim N> |
| D uint8 | abs (D int8 x) |
| |
| template<domain D :shared3p , dim N> |
| D uint16 | abs (D int16 x) |
| |
| template<domain D :shared3p , dim N> |
| D uint32 | abs (D int32 x) |
| |
| template<domain D :shared3p , dim N> |
| D uint | abs (D int x) |
| |
| template<domain D :shared3p , dim N> |
| D float32 | abs (D float32 value) |
| |
| template<domain D :shared3p , dim N> |
| D float64 | abs (D float64 value) |
| |
| template<domain D :shared3p , dim N> |
| D fix32 | abs (D fix32 value) |
| |
| template<domain D :shared3p , dim N> |
| D fix64 | abs (D fix64 value) |
| |
Function for finding absolute values.
- Note
- D - shared3p protection domain
-
Supported types - int8 / int16 / int32 / int / float32 / float64 / fix32 / fix64
- 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
- Leakage
- None
◆ abs() [1/8]
template<domain D :shared3p , dim N>
| D fix32 abs |
( |
D fix32 |
value | ) |
|
◆ abs() [2/8]
template<domain D :shared3p , dim N>
| D fix64 abs |
( |
D fix64 |
value | ) |
|
◆ abs() [3/8]
template<domain D :shared3p , dim N>
| D float32 abs |
( |
D float32 |
value | ) |
|
◆ abs() [4/8]
template<domain D :shared3p , dim N>
| D float64 abs |
( |
D float64 |
value | ) |
|
◆ abs() [5/8]
template<domain D :shared3p , dim N>
◆ abs() [6/8]
template<domain D :shared3p , dim N>
| D uint16 abs |
( |
D int16 |
x | ) |
|
◆ abs() [7/8]
template<domain D :shared3p , dim N>
| D uint32 abs |
( |
D int32 |
x | ) |
|
◆ abs() [8/8]
template<domain D :shared3p , dim N>