|
template<domain D, type T> |
D T | max (D T scalar) |
|
template<type T> |
T | max (T[[1]] vec) |
|
template<domain D, type T> |
D T | max (D T[[1]] vec) |
|
template<type T, dim N> |
T | max (T[[N]] arr) |
|
Function for finding the maximum value of the input.
- Note
- Supported types - bool / uint8 / uint16 / uint32 / uint / int8 / int16 / int32 / int
- Returns
- return the maximum value of the input
◆ max() [1/4]
- Note
- D - all protection domains
-
T - any data type
- Parameters
-
- Returns
- returns the scalar value
- Leakage
- None
◆ max() [2/4]
- Note
- D - all protection domains
-
T - any data type
- Parameters
-
vec | - a 1-dimensional vector |
- Returns
- returns the largest value in the vector
- Leakage
- None
◆ max() [3/4]
- Parameters
-
vec | - a 1-dimensional vector |
- Note
- T - any data type
- Returns
- returns the largest value in the vector
◆ max() [4/4]
- Note
- T - any data type
- Parameters
-
arr | - an array of any dimension |
- Returns
- returns the largest value in the array