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

Min-loc reducer class template. More...

Detailed Description

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

Min-loc reducer class template.

Usage example:

  Real_ptr data = ...;
  ReduceMinLoc<reduce_policy, Real_type> my_min(init_val, -1);

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

  Real_type minval = my_min.get();
  Index_type minloc = my_min.getLoc();

* 

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