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

Functions

template<domain D :shared2p >
D uint8 max (D uint8 x, uint k)
 
template<domain D :shared2p >
D uint16 max (D uint16 x, uint k)
 
template<domain D :shared2p >
D uint32 max (D uint32 x, uint k)
 
template<domain D :shared2p >
D uint max (D uint x, uint k)
 
template<domain D :shared2p >
D int8 max (D int8 x, uint k)
 
template<domain D :shared2p >
D int16 max (D int16 x, uint k)
 
template<domain D :shared2p >
D int32 max (D int32 x, uint k)
 
template<domain D :shared2p >
D int max (D int x, uint k)
 

Detailed Description

Function for finding the maximum element in the specified parts of the vector.

Note
D - shared2p protection domain
Supported types - uint8 / uint16 / uint32 / uint / int8 / int16 / int32 / int
Parameters
x- input vector
k- an uint type value, which specifies into how many subarrays must the input array be divided
Returns
a vector with all the maximum elements of all the subarrays specified by k
Precondition
input vector is not empty
the size of the input array is dividable by k

Function Documentation

◆ max() [1/8]

template<domain D :shared2p >
D int max ( D int  x,
uint  k 
)

◆ max() [2/8]

template<domain D :shared2p >
D int16 max ( D int16  x,
uint  k 
)

◆ max() [3/8]

template<domain D :shared2p >
D int32 max ( D int32  x,
uint  k 
)

◆ max() [4/8]

template<domain D :shared2p >
D int8 max ( D int8  x,
uint  k 
)

◆ max() [5/8]

template<domain D :shared2p >
D uint max ( D uint  x,
uint  k 
)

◆ max() [6/8]

template<domain D :shared2p >
D uint16 max ( D uint16  x,
uint  k 
)

◆ max() [7/8]

template<domain D :shared2p >
D uint32 max ( D uint32  x,
uint  k 
)

◆ max() [8/8]

template<domain D :shared2p >
D uint8 max ( D uint8  x,
uint  k 
)