SecreC 2 language 2.9.0 (2026.10)
Language and standard library reference
Loading...
Searching...
No Matches
Functions

Functions

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)
 

Detailed Description

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

Function Documentation

◆ abs() [1/4]

template<domain D :shared2p , dim N>
D uint abs ( D int  x)

◆ 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>
D uint8 abs ( D int8  x)