RAJA
RAJA provides a collection of platform portability abstractions for C++ HPC applications.
Public Member Functions | Static Public Member Functions | Friends | List of all members
RAJA::operators::minimum< Ret, Arg1, Arg2 > Struct Template Reference

#include <Operators.hpp>

Inheritance diagram for RAJA::operators::minimum< Ret, Arg1, Arg2 >:
RAJA::operators::detail::binary_function< Ret, Ret, Ret > RAJA::operators::detail::associative_tag RAJA::reduce::detail::op_adapter< T, RAJA::operators::minimum > RAJA::reduce::min< T >

Public Member Functions

constexpr RAJA_HOST_DEVICE Ret operator() (const Arg1 &lhs, const Arg2 &rhs) const
 

Static Public Member Functions

static constexpr RAJA_HOST_DEVICE Ret identity ()
 

Friends

std::ostream & operator<< (std::ostream &str, minimum const &)
 

Additional Inherited Members

- Public Types inherited from RAJA::operators::detail::binary_function< Ret, Ret, Ret >
using first_argument_type = Ret
 
using second_argument_type = Ret
 
using result_type = Ret
 

Detailed Description

template<typename Ret, typename Arg1 = Ret, typename Arg2 = Arg1>
struct RAJA::operators::minimum< Ret, Arg1, Arg2 >

Checks if the candidate (rhs) value is strictly less than the current value (lhs); if so the candidate is returned. When this operator is used to cycle through an array this ensures that the location of the first min/max is kept.

Member Function Documentation

◆ operator()()

template<typename Ret , typename Arg1 = Ret, typename Arg2 = Arg1>
constexpr RAJA_HOST_DEVICE Ret RAJA::operators::minimum< Ret, Arg1, Arg2 >::operator() ( const Arg1 &  lhs,
const Arg2 &  rhs 
) const
inlineconstexpr

◆ identity()

template<typename Ret , typename Arg1 = Ret, typename Arg2 = Arg1>
static constexpr RAJA_HOST_DEVICE Ret RAJA::operators::minimum< Ret, Arg1, Arg2 >::identity ( )
inlinestaticconstexpr

Friends And Related Function Documentation

◆ operator<<

template<typename Ret , typename Arg1 = Ret, typename Arg2 = Arg1>
std::ostream& operator<< ( std::ostream &  str,
minimum< Ret, Arg1, Arg2 > const &   
)
friend

The documentation for this struct was generated from the following file: