1 #ifndef CPPAD_CG_EVALUATOR_ADCG_INCLUDED 2 #define CPPAD_CG_EVALUATOR_ADCG_INCLUDED 24 template<
class ScalarIn,
class BaseOut>
25 class Evaluator<ScalarIn,
CG<BaseOut>,
CppAD::
AD<CG<BaseOut> > > :
public EvaluatorAD<ScalarIn, CG<BaseOut>, Evaluator<ScalarIn, CG<BaseOut>, CppAD::AD<CG<BaseOut> > > > {
36 using Super::evalsAtomic_;
37 using Super::atomicFunctions_;
38 using Super::handler_;
39 using Super::evalArrayCreationOperation;
114 adcgName_ = adcgName;
134 if (node.
getName() !=
nullptr) {
135 if(adcgName_ && CppAD::Variable(a)) {
136 ScalarOut a2(CppAD::Value(CppAD::Var2Par(a)));
137 if (a2.getOperationNode() !=
nullptr) {
138 a2.getOperationNode()->setName(*node.
getName());
143 CppAD::PrintFor(printForPos_,
"", a, node.
getName()->c_str());
const ActiveOut & getPrintForPos() const
void processActiveOut(const OperationNode< ScalarIn > &node, ActiveOut &a)
const std::string * getName() const
void setPrintForPos(const ActiveOut &pos)
void setPrintFor(bool printFor)
void setCopyAdCgName(bool adcgName)
bool isCopyAdCgName() const