Minimum/maximum operations#
Defined in header <Kokkos_Core.hpp>
Provides minimum/maximum and related operations from the standard library header <algorithm>
.
The min/max and clamp function templates are defined in the Kokkos::
namespace since Kokkos 3.7
returns the smaller of the given values |
|
returns the greater of the given values |
|
returns the smaller and larger of the given values |
|
clamps a value between a pair of boundary values |
Notes#
Since version 4.3, one may include
<Kokkos_Clamp.hpp>
and<Kokkos_MinMax.hpp>
respectively to make these functions available.
See also#
min_element
: returns the smallest element in a range
max_element
: returns the largest element in a range
minmax_element
: returns the smallest and the largest elements in a range