Public Member Functions | Private Attributes
Sundance::NonlinearUnaryOpEvaluator Class Reference
Inheritance diagram for Sundance::NonlinearUnaryOpEvaluator:
Sundance::ChainRuleEvaluator Sundance::SubtypeEvaluator< ExprWithChildren > Sundance::Evaluator Sundance::ObjectWithClassVerbosity< Evaluator > Sundance::DefaultObjectWithVerbosity Sundance::ObjectWithVerbosityBase

List of all members.

Public Member Functions

 NonlinearUnaryOpEvaluator (const NonlinearUnaryOp *expr, const EvalContext &context)
virtual ~NonlinearUnaryOpEvaluator ()
virtual void evalArgDerivs (const EvalManager &mgr, const Array< RCP< Array< double > > > &constArgRes, const Array< RCP< Array< RCP< EvalVector > > > > &vArgResults, Array< double > &constArgDerivs, Array< RCP< EvalVector > > &varArgDerivs) const
 Evaluate the derivatives of the expression with respect to the arguments.
 TEUCHOS_TIMER (evalTimer,"nonlinear unary op arg evaluation")

Private Attributes

const UnaryFunctorop_
int maxOrder_
bool argIsConstant_
int argValueIndex_

Detailed Description

Definition at line 47 of file SundanceNonlinearUnaryOpEvaluator.hpp.


Constructor & Destructor Documentation

NonlinearUnaryOpEvaluator::NonlinearUnaryOpEvaluator ( const NonlinearUnaryOp expr,
const EvalContext context 
)
virtual Sundance::NonlinearUnaryOpEvaluator::~NonlinearUnaryOpEvaluator ( ) [inline, virtual]

Definition at line 55 of file SundanceNonlinearUnaryOpEvaluator.hpp.


Member Function Documentation

void NonlinearUnaryOpEvaluator::evalArgDerivs ( const EvalManager mgr,
const Array< RCP< Array< double > > > &  constDerivsOfArgs,
const Array< RCP< Array< RCP< EvalVector > > > > &  varDerivOfArgs,
Array< double > &  constArgDerivs,
Array< RCP< EvalVector > > &  varArgDerivs 
) const [virtual]

Evaluate the derivatives of the expression with respect to the arguments.

Parameters:
mgrManager for this evaluation step
constDerivsOfArgsConstant values and functional derivatives of arguments. The outer array index is over arguments. The inner array index is over functional derivatives of that argument.
varDerivsOfArgsVariable values and functional derivatives of arguments. The outer array index is over arguments. The inner array index is over functional derivatives of that argument.
constArgDerivsConstant-valued derivatives of expr wrt arguments.
varArgDerivsVariable-valued derivatives of expr wrt arguments.

Implements Sundance::ChainRuleEvaluator.

Definition at line 109 of file SundanceNonlinearUnaryOpEvaluator.cpp.

References Sundance::UnaryFunctor::fdStep(), Sundance::TempStack::popVector(), Sundance::EvalVector::shadowOps(), Sundance::EvalManager::stack(), SUNDANCE_MSG1, SUNDANCE_MSG2, and Sundance::EvalManager::verb().

Sundance::NonlinearUnaryOpEvaluator::TEUCHOS_TIMER ( evalTimer  ,
"nonlinear unary op arg evaluation"   
)

Member Data Documentation

Definition at line 69 of file SundanceNonlinearUnaryOpEvaluator.hpp.

Definition at line 70 of file SundanceNonlinearUnaryOpEvaluator.hpp.

Definition at line 68 of file SundanceNonlinearUnaryOpEvaluator.hpp.

Definition at line 67 of file SundanceNonlinearUnaryOpEvaluator.hpp.

Site Contact