43 #ifndef RTOPPACK_ROP_MIN_INDEX_HPP
44 #define RTOPPACK_ROP_MIN_INDEX_HPP
47 #include "RTOpPack_RTOpTHelpers.hpp"
54 template<
class Scalar>
74 template<
class Scalar>
92 inout_reduct = in_reduct;
103 template<
class Scalar>
108 ROpMinIndexEleWiseReductionOp<Scalar>,
109 ROpMinIndexReductObjReductionOp<Scalar> >
116 this->initReductObjValue(
128 #endif // RTOPPACK_ROP_MIN_INDEX_HPP
Base class for coordinate-variant scalar reduction RTOps with one input vector.
Teuchos_Ordinal index_type
Returns the minimum element and its index: result.scalar = x(k) and result.index = k such that x(k) <...
Simple struct for a Scalar and an Ordinal object.
ScalarIndex< Scalar > operator()(const ReductTarget &reduct_obj) const
Abstract base class for all reduction objects.
void operator()(const index_type i, const Scalar &v0, ScalarIndex< Scalar > &reduct) const
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 ScalarIndex< Scalar > &in_reduct, ScalarIndex< Scalar > &inout_reduct) const