43 #ifndef RTOPPACK_TOP_SET_ELEMENT_HPP
44 #define RTOPPACK_TOP_SET_ELEMENT_HPP
46 #include "RTOpPack_RTOpTHelpers.hpp"
54 template<
class Scalar>
60 const Scalar &val_i_in = static_cast<Scalar>(0.0) )
61 :global_i_(global_i_in), val_i_(val_i_in)
69 void operator()(
const Ordinal global_i_in, Scalar &z0 )
const
71 if (global_i_in == global_i_) {
83 template<
class Scalar>
90 const Scalar &val_i_in = static_cast<Scalar>(0.0))
97 void initialize(
const Ordinal &global_i_in,
const Scalar &val_i_in)
107 return Range1D(i, i);
115 #endif // RTOPPACK_TOP_SET_ELEMENT_HPP
virtual Range1D range_impl() const
void initialize(const Ordinal &global_i_in, const Scalar &val_i_in)
void setEleWiseTransformation(EleWiseTransformation eleWiseTransformation)
void setOpNameBase(const std::string &op_name_base)
TOpSetElement(const Ordinal &global_i_in=-1, const Scalar &val_i_in=static_cast< Scalar >(0.0))
Set the elements of a vector to: z0[i] = i+global_i+1, i=0...n-1.
const EleWiseTransformation & getEleWiseTransformation() const