Public Member Functions | |
DerivOfSymbFuncEvaluator (const DerivOfSymbFunc *expr, const EvalContext &context) | |
virtual | ~DerivOfSymbFuncEvaluator () |
virtual void | internalEval (const EvalManager &mgr, Array< double > &constantResults, Array< RCP< EvalVector > > &vectorResults) const |
virtual void | resetNumCalls () const |
TEUCHOS_TIMER (evalTimer,"DerivOfSymbFunc evaluation") | |
Private Attributes | |
Array< const DiscreteFuncElementEvaluator * > | funcEvaluator_ |
int | funcMiIndex_ |
bool | evalPtIsZero_ |
int | constResultIndex_ |
RCP< SparsitySuperset > | funcSparsitySuperset_ |
Definition at line 16 of file SundanceDerivOfSymbFuncEvaluator.hpp.
DerivOfSymbFuncEvaluator::DerivOfSymbFuncEvaluator | ( | const DerivOfSymbFunc * | expr, | |
const EvalContext & | context | |||
) |
Definition at line 53 of file SundanceDerivOfSymbFuncEvaluator.cpp.
References Sundance::ConstantDeriv, Sundance::SymbolicFuncElement::evalPt(), Sundance::UnaryExpr::evaluatableArg(), Sundance::EvaluatableExpr::evaluator(), Sundance::DiscreteFuncElementEvaluator::hasMultiIndex(), Sundance::DiffOp::mi(), Sundance::DiscreteFuncElementEvaluator::miIndex(), Sundance::EvaluatableExpr::setupEval(), Sundance::EvalContext::setupVerbosity(), Sundance::SubtypeEvaluator< ExprType >::sparsity(), SUNDANCE_MSG1, SUNDANCE_MSG2, Sundance::MultiIndex::toString(), and Sundance::ExprBase::toString().
virtual Sundance::DerivOfSymbFuncEvaluator::~DerivOfSymbFuncEvaluator | ( | ) | [inline, virtual] |
Definition at line 24 of file SundanceDerivOfSymbFuncEvaluator.hpp.
void DerivOfSymbFuncEvaluator::internalEval | ( | const EvalManager & | mgr, | |
Array< double > & | constantResults, | |||
Array< RCP< EvalVector > > & | vectorResults | |||
) | const [virtual] |
Implements Sundance::Evaluator.
Definition at line 169 of file SundanceDerivOfSymbFuncEvaluator.cpp.
References constResultIndex_, evalPtIsZero_, Sundance::SubtypeEvaluator< DerivOfSymbFunc >::expr(), funcEvaluator_, funcMiIndex_, funcSparsitySuperset_, Playa::Out::os(), SUNDANCE_MSG1, SUNDANCE_MSG2, Sundance::ExprBase::toString(), and Sundance::EvalManager::verb().
void DerivOfSymbFuncEvaluator::resetNumCalls | ( | ) | const [virtual] |
We need a specialized resetting method for diff op evaluators that also resets the discrete func evaluators used in the functional chain rule
Reimplemented from Sundance::UnaryEvaluator< DerivOfSymbFunc >.
Definition at line 215 of file SundanceDerivOfSymbFuncEvaluator.cpp.
References funcEvaluator_.
Sundance::DerivOfSymbFuncEvaluator::TEUCHOS_TIMER | ( | evalTimer | , | |
"DerivOfSymbFunc evaluation" | ||||
) |
int Sundance::DerivOfSymbFuncEvaluator::constResultIndex_ [private] |
bool Sundance::DerivOfSymbFuncEvaluator::evalPtIsZero_ [private] |
Array<const DiscreteFuncElementEvaluator*> Sundance::DerivOfSymbFuncEvaluator::funcEvaluator_ [private] |
Definition at line 40 of file SundanceDerivOfSymbFuncEvaluator.hpp.
Referenced by internalEval(), and resetNumCalls().
int Sundance::DerivOfSymbFuncEvaluator::funcMiIndex_ [private] |