43 #ifndef RTOPPACK_ROP_GET_ELEMENT_HPP
44 #define RTOPPACK_ROP_GET_ELEMENT_HPP
46 #include "RTOpPack_RTOpTHelpers.hpp"
53 template<
class Scalar>
58 :global_i_(global_i_in)
66 void operator()(
const index_type i,
const Scalar &v0, Scalar &reduct)
const
81 template<
class Scalar>
86 ROpGetElementEleWiseReductionOp<Scalar>
95 this->initReductObjValue(ScalarTraits<Scalar>::zero());
112 return Range1D(i, i);
121 #endif // RTOPPACK_ROP_GET_ELEMENT_HPP
void initialize(const Ordinal &global_i)
ROpGetElementEleWiseReductionOp(const Ordinal &global_i_in=-1)
const EleWiseReduction & getEleWiseReduction() const
void setEleWiseReduction(EleWiseReduction eleWiseReduction_in)
ROpGetElement(const Ordinal &global_i)
Returns the value of the element at index global_i.
Scalar operator()(const ReductTarget &reduct_obj) const
void setOpNameBase(const std::string &op_name_base)
void operator()(const index_type i, const Scalar &v0, Scalar &reduct) const
const ReductScalar & getRawVal(const ReductTarget &reduct_obj) const
virtual Range1D range_impl() const