11 #ifndef RTOPPACK_ROP_MAX_INDEX_LESS_THAN_BOUND_HPP
12 #define RTOPPACK_ROP_MAX_INDEX_LESS_THAN_BOUND_HPP
14 #include "RTOpPack_ROpMaxIndex.hpp"
22 template<
class Scalar>
27 const Scalar &bound = ScalarTraits<Scalar>::zero()
62 template<
class Scalar>
67 ROpMaxIndexLessThanBoundEleWiseReductionOp<Scalar>,
68 ROpMaxIndexReductObjReductionOp<Scalar> >
78 this->initReductObjValue(
82 void bound(
const Scalar& bound_in)
97 #endif // RTOPPACK_ROP_MAX_INDEX_LESS_THAN_BOUND_HPP
void setEleWiseReduction(EleWiseReduction eleWiseReduction_in)
ROpMaxIndexLessThanBound(const Scalar &bound_in=Teuchos::ScalarTraits< Scalar >::zero())
void operator()(const index_type i, const Scalar &v0, ScalarIndex< Scalar > &reduct) const
ScalarIndex< Scalar > operator()(const ReductTarget &reduct_obj) const
Returns the maximum element less than some bound along with its index: result.scalar = x(k) and resul...
void setOpNameBase(const std::string &op_name_base)
void bound(const Scalar &bound_in)
const ReductScalar & getRawVal(const ReductTarget &reduct_obj) const
ROpMaxIndexLessThanBoundEleWiseReductionOp(const Scalar &bound=ScalarTraits< Scalar >::zero())