43 #ifndef RTOPPACK_ROP_MAX_INDEX_LESS_THAN_BOUND_HPP 44 #define RTOPPACK_ROP_MAX_INDEX_LESS_THAN_BOUND_HPP 47 #include "Teuchos_StandardMemberCompositionMacros.hpp" 54 template<
class Scalar>
59 const Scalar &bound = ScalarTraits<Scalar>::zero()
94 template<
class Scalar>
99 ROpMaxIndexLessThanBoundEleWiseReductionOp<Scalar>,
100 ROpMaxIndexReductObjReductionOp<Scalar> >
105 const Scalar &bound_in = Teuchos::ScalarTraits<Scalar>::zero()
108 this->setOpNameBase(
"ROpMaxIndexLessThanBound");
110 this->initReductObjValue(
116 this->setEleWiseReduction(
122 {
return this->getRawVal(reduct_obj); }
129 #endif // RTOPPACK_ROP_MAX_INDEX_LESS_THAN_BOUND_HPP Base class for coordinate-variant scalar reduction RTOps with one input vector.
ROpMaxIndexLessThanBound(const Scalar &bound_in=Teuchos::ScalarTraits< Scalar >::zero())
Teuchos_Ordinal index_type
void operator()(const index_type i, const Scalar &v0, ScalarIndex< Scalar > &reduct) const
ScalarIndex< Scalar > operator()(const ReductTarget &reduct_obj) const
Simple struct for a Scalar and an Ordinal object.
Abstract base class for all reduction objects.
Returns the maximum element less than some bound along with its index: result.scalar = x(k) and resul...
void bound(const Scalar &bound_in)
ROpMaxIndexLessThanBoundEleWiseReductionOp(const Scalar &bound=ScalarTraits< Scalar >::zero())