RAJA
RAJA provides a collection of platform portability abstractions for C++ HPC applications.
RAJA::MultiReduceMin< MULTI_REDUCE_POLICY_T, T > Struct Template Reference

Min multi reducer class template. More...

Detailed Description

template<typename MULTI_REDUCE_POLICY_T, typename T>
struct RAJA::MultiReduceMin< MULTI_REDUCE_POLICY_T, T >

Min multi reducer class template.

Usage example:

  Real_ptr data = ...;
  Index_ptr bins = ...;
  Real_ptr min_vals = ...;

  MultiReduceMin<multi_reduce_policy, Real_type> my_mins(num_bins, init_val);

  forall<exec_policy>( ..., [=] (Index_type i) {
     my_mins[bins[i]].min(data[i]);
  }

  for (size_t bin = 0; bin < num_bins; ++bin) {
     min_vals[bin] = my_mins[bin].get();
  }

* 

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