11 #ifndef RTOPPACK_ROP_MAX_INDEX_HPP
12 #define RTOPPACK_ROP_MAX_INDEX_HPP
14 #include "RTOpPack_RTOpTHelpers.hpp"
20 template<
class Scalar>
40 template<
class Scalar>
58 inout_reduct = in_reduct;
69 template<
class Scalar>
74 ROpMaxIndexEleWiseReductionOp<Scalar>,
75 ROpMaxIndexReductObjReductionOp<Scalar> >
82 this->initReductObjValue(
94 #endif // RTOPPACK_ROP_MAX_INDEX_HPP
Base class for coordinate-variant scalar reduction RTOps with one input vector.
Teuchos_Ordinal index_type
Simple struct for a Scalar and an Ordinal object.
Abstract base class for all reduction objects.
Returns the maximum element and its index: result.scalar = x(k) and result.index = k such that x(k) >...
void setOpNameBase(const std::string &op_name_base)
Just set the operator name.
const ScalarIndex< Scalar > & getRawVal(const ReductTarget &reduct_obj) const
void operator()(const index_type i, const Scalar &v0, ScalarIndex< Scalar > &reduct) const
ScalarIndex< Scalar > operator()(const ReductTarget &reduct_obj) const
void operator()(const ScalarIndex< Scalar > &in_reduct, ScalarIndex< Scalar > &inout_reduct) const