|
RAJA
RAJA provides a collection of platform portability abstractions for C++ HPC applications.
|
Max-loc reducer class template. More...
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();
*