43 #ifndef RTOPPACK_ROP_MIN_INDEX_GREATER_THAN_BOUND_HPP 44 #define RTOPPACK_ROP_MIN_INDEX_GREATER_THAN_BOUND_HPP 46 #include "RTOpPack_ROpMinIndex.hpp" 47 #include "Teuchos_StandardMemberCompositionMacros.hpp" 54 template<
class Scalar>
59 const Scalar &bound = ScalarTraits<Scalar>::zero()
94 template<
class Scalar>
99 ROpMinIndexGreaterThanBoundEleWiseReductionOp<Scalar>,
100 ROpMinIndexReductObjReductionOp<Scalar> >
106 const Scalar &bound_in = Teuchos::ScalarTraits<Scalar>::zero()
109 this->setOpNameBase(
"ROpMinIndexGreaterThanBound");
111 this->initReductObjValue(
117 this->setEleWiseReduction(
123 {
return this->getRawVal(reduct_obj); }
131 #endif // RTOPPACK_ROP_MIN_INDEX_GREATER_THAN_BOUND_HPP
void bound(const Scalar &bound_in)
Returns the minimum element greater than some bound along with its index: result.scalar = x(k) and re...
ROpMinIndexGreaterThanBoundEleWiseReductionOp(const Scalar &bound=ScalarTraits< Scalar >::zero())
ROpMinIndexGreaterThanBound(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