RAJA
RAJA provides a collection of platform portability abstractions for C++ HPC applications.
RAJA::ReduceMax< REDUCE_POLICY_T, T > Class Template Reference

Max reducer class template. More...

Detailed Description

template<typename REDUCE_POLICY_T, typename T>
class RAJA::ReduceMax< REDUCE_POLICY_T, T >

Max reducer class template.

Usage example:

  Real_ptr data = ...;
  ReduceMax<reduce_policy, Real_type> my_max(init_val);

  forall<exec_policy>( ..., [=] (Index_type i) {
     my_max.max(data[i]);
  }

  Real_type maxval = my_max.get();

* 

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