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

Max-loc reducer class template. More...

Detailed Description

template<typename REDUCE_POLICY_T, typename T, typename IndexType = Index_type>
class RAJA::ReduceMaxLoc< REDUCE_POLICY_T, T, IndexType >

Max-loc reducer class template.

Usage example:

  Real_ptr data = ...;
  ReduceMaxLoc<reduce_policy, Real_type> my_max(init_val, -1);

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

  Real_type maxval = my_max.get();
  Index_type maxloc = my_max.getLoc();

* 

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