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

Functions

template<domain D, type T>
D T max (D T vec, uint k)
 

Detailed Description

Function for finding the maximum value of the input in specified parts.

Note
Supported types - bool / uint8 / uint16 / uint32 / uint / int8 / int16 / int32 / int
Parameters
vec- a vector of supported type
k- an uint type value for specifying from how many subarrays max must be found
Returns
returns the maximum value of every subarray in the input
Leakage
None

Function Documentation

◆ max()

template<domain D, type T>
D T max ( D T  vec,
uint  k 
)