SecreC 2 language  2.8.0 (2023.09)
Language and standard library reference
Functions

Functions

template<domain D :shared2p , dim N>
D uint8 abs (D int8[[N]] x)
 
template<domain D :shared2p , dim N>
D uint16 abs (D int16[[N]] x)
 
template<domain D :shared2p , dim N>
D uint32 abs (D int32[[N]] x)
 
template<domain D :shared2p , dim N>
D uint abs (D int[[N]] 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]

D uint16 abs ( D int16[[N]]  x)

◆ abs() [2/4]

D uint32 abs ( D int32[[N]]  x)

◆ abs() [3/4]

D uint8 abs ( D int8[[N]]  x)

◆ abs() [4/4]

D uint abs ( D int[[N]]  x)