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