43 #ifndef RTOPPACK_ROP_MAX_INDEX_HPP 44 #define RTOPPACK_ROP_MAX_INDEX_HPP 46 #include "RTOpPack_RTOpTHelpers.hpp" 52 template<
class Scalar>
72 template<
class Scalar>
90 inout_reduct = in_reduct;
101 template<
class Scalar>
106 ROpMaxIndexEleWiseReductionOp<Scalar>,
107 ROpMaxIndexReductObjReductionOp<Scalar> >
113 this->setOpNameBase(
"ROpMaxIndex");
114 this->initReductObjValue(
119 {
return this->getRawVal(reduct_obj); }
126 #endif // RTOPPACK_ROP_MAX_INDEX_HPP
Returns the maximum element and its index: result.scalar = x(k) and result.index = k such that x(k) >...
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