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

min

returns the smaller of the given values

max

returns the greater of the given values

minmax

returns the smaller and larger of the given values

clamp

clamps a value between a pair of boundary values

Notes#


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