|
CppADCodeGen 2.4.3
A C++ Algorithmic Differentiation Package with Source Code Generation
|
#include <evaluator_adolc.hpp>


Public Types | |
| using | ActiveOut = adouble |
| using | Super = EvaluatorOperations<ScalarIn, double, adouble, Evaluator<ScalarIn, double, adouble> > |
| using | Base |
| using | NodeIn |
| using | ArgIn |
Public Member Functions | |
| Evaluator (CodeHandler< ScalarIn > &handler) | |
| Evaluator (CodeHandler< ScalarIn > &handler) | |
| bool | isUnderEvaluation () |
| std::vector< adouble > | evaluate (ArrayView< const adouble > indepNew, ArrayView< const CG< ScalarIn > > depOld) |
| void | evaluate (ArrayView< const adouble > indepNew, ArrayView< adouble > depNew, ArrayView< const CG< ScalarIn > > depOld) |
| void | evaluate (const adouble *indepNew, size_t indepSize, adouble *depNew, const CG< ScalarIn > *depOld, size_t depSize) |
| std::vector< ActiveOut > | evaluate (ArrayView< const ActiveOut > indepNew, ArrayView< const CG< ScalarIn > > depOld) |
| void | evaluate (ArrayView< const ActiveOut > indepNew, ArrayView< ActiveOut > depNew, ArrayView< const CG< ScalarIn > > depOld) |
| void | evaluate (const ActiveOut *indepNew, size_t indepSize, ActiveOut *depNew, const CG< ScalarIn > *depOld, size_t depSize) |
Protected Types | |
| using | SourceCodePath |
Protected Member Functions | |
| adouble | evalOperation (OperationNode< ScalarIn > &node) |
| adouble | evalAssign (const NodeIn &node) |
| adouble | evalAbs (const NodeIn &node) |
| adouble | evalAcos (const NodeIn &node) |
| adouble | evalAdd (const NodeIn &node) |
| adouble | evalAlias (const NodeIn &node) |
| adouble | evalArrayElement (const NodeIn &node) |
| adouble | evalAsin (const NodeIn &node) |
| adouble | evalAtan (const NodeIn &node) |
| adouble | evalCompareLt (const NodeIn &node) |
| adouble | evalCompareLe (const NodeIn &node) |
| adouble | evalCompareEq (const NodeIn &node) |
| adouble | evalCompareGe (const NodeIn &node) |
| adouble | evalCompareGt (const NodeIn &node) |
| adouble | evalCompareNe (const NodeIn &node) |
| adouble | evalCosh (const NodeIn &node) |
| adouble | evalCos (const NodeIn &node) |
| adouble | evalDiv (const NodeIn &node) |
| adouble | evalExp (const NodeIn &node) |
| adouble | evalIndependent (const NodeIn &node) |
| adouble | evalLog (const NodeIn &node) |
| adouble | evalMul (const NodeIn &node) |
| adouble | evalPow (const NodeIn &node) |
| adouble | evalPrint (const NodeIn &node) |
| adouble | evalSign (const NodeIn &node) |
| adouble | evalSinh (const NodeIn &node) |
| adouble | evalSin (const NodeIn &node) |
| adouble | evalSqrt (const NodeIn &node) |
| adouble | evalSub (const NodeIn &node) |
| adouble | evalTanh (const NodeIn &node) |
| adouble | evalTan (const NodeIn &node) |
| adouble | evalMinus (const NodeIn &node) |
| adouble | evalUnsupportedOperation (const NodeIn &node) |
| void | evalAtomicOperation (const NodeIn &node) |
| void | processActiveOut (const NodeIn &node, adouble &a) |
| adouble | evalArg (const std::vector< Argument< ScalarIn > > &args, size_t pos) |
| adouble | evalArg (const Argument< ScalarIn > &arg, size_t pos) |
| void | prepareNewEvaluation () |
| void | clear () |
| void | analyzeOutIndeps (const adouble *indep, size_t n) |
| adouble | evalCG (const CG< ScalarIn > &dep) |
| const adouble & | evalOperations (OperationNode< ScalarIn > &node) |
| adouble * | saveEvaluation (const OperationNode< ScalarIn > &node, adouble &&result) |
| std::vector< adouble > & | evalArrayCreationOperation (const OperationNode< ScalarIn > &node) |
| std::vector< adouble > & | evalSparseArrayCreationOperation (const OperationNode< ScalarIn > &node) |
| void | analyzeOutIndeps (const ActiveOut *indep, size_t n) |
| ActiveOut * | saveEvaluation (const OperationNode< ScalarIn > &node, ActiveOut &&result) |
Protected Attributes | |
| CodeHandler< ScalarIn > & | handler_ |
| const adouble * | indep_ |
| CodeHandlerVector< ScalarIn, std::unique_ptr< adouble > > | evals_ |
| std::map< size_t, std::vector< adouble > * > | evalsArrays_ |
| std::map< size_t, std::vector< adouble > * > | evalsSparseArrays_ |
| bool | underEval_ |
| size_t | depth_ |
| SourceCodePath | path_ |
Specialization of class Evaluator for Adol-C
Definition at line 98 of file evaluator_adolc.hpp.
| using CppAD::cg::Evaluator< ScalarIn, double, adouble >::ActiveOut = adouble |
Definition at line 100 of file evaluator_adolc.hpp.
| using CppAD::cg::EvaluatorOperations< ScalarIn, double, adouble, FinalEvaluatorType >::ArgIn |
Definition at line 354 of file evaluator.hpp.
| using CppAD::cg::Evaluator< ScalarIn, double, adouble >::Base |
Definition at line 696 of file evaluator.hpp.
| using CppAD::cg::EvaluatorOperations< ScalarIn, double, adouble, FinalEvaluatorType >::NodeIn |
Definition at line 353 of file evaluator.hpp.
|
protected |
Definition at line 48 of file evaluator.hpp.
| using CppAD::cg::Evaluator< ScalarIn, double, adouble >::Super = EvaluatorOperations<ScalarIn, double, adouble, Evaluator<ScalarIn, double, adouble> > |
Definition at line 101 of file evaluator_adolc.hpp.
|
inline |
Definition at line 104 of file evaluator_adolc.hpp.
|
inline |
Definition at line 699 of file evaluator.hpp.
|
inlineprotected |
Definition at line 211 of file evaluator.hpp.
|
inlineprotectedinherited |
Definition at line 211 of file evaluator.hpp.
|
inlineprotected |
clean-up
Definition at line 197 of file evaluator.hpp.
|
inlineprotected |
Definition at line 487 of file evaluator.hpp.
|
inlineprotected |
Definition at line 493 of file evaluator.hpp.
|
inlineprotected |
Definition at line 499 of file evaluator.hpp.
|
inlineprotected |
Definition at line 505 of file evaluator.hpp.
|
inlineprotected |
Definition at line 364 of file evaluator.hpp.
|
inlineprotected |
Definition at line 364 of file evaluator.hpp.
|
inlineprotected |
Definition at line 281 of file evaluator.hpp.
|
inlineprotected |
Definition at line 511 of file evaluator.hpp.
|
inlineprotected |
Definition at line 527 of file evaluator.hpp.
|
inlineprotected |
Definition at line 481 of file evaluator.hpp.
|
inlineprotected |
Definition at line 533 of file evaluator.hpp.
|
inlineprotected |
Definition at line 680 of file evaluator.hpp.
|
inlineprotected |
Definition at line 216 of file evaluator.hpp.
|
inlineprotected |
Definition at line 551 of file evaluator.hpp.
|
inlineprotected |
Definition at line 557 of file evaluator.hpp.
|
inlineprotected |
Definition at line 563 of file evaluator.hpp.
|
inlineprotected |
Definition at line 545 of file evaluator.hpp.
|
inlineprotected |
Definition at line 539 of file evaluator.hpp.
|
inlineprotected |
Definition at line 569 of file evaluator.hpp.
|
inlineprotected |
Definition at line 581 of file evaluator.hpp.
|
inlineprotected |
Definition at line 575 of file evaluator.hpp.
|
inlineprotected |
Definition at line 587 of file evaluator.hpp.
|
inlineprotected |
Definition at line 593 of file evaluator.hpp.
|
inlineprotected |
Definition at line 599 of file evaluator.hpp.
|
inlineprotected |
Definition at line 604 of file evaluator.hpp.
|
inlineprotected |
Definition at line 670 of file evaluator.hpp.
|
inlineprotected |
Definition at line 610 of file evaluator.hpp.
|
inlineprotected |
Clones a node with the new type. Override this method to add a custom node generation behaviour which does not follow the original operation graph.
| node | the original node |
Definition at line 374 of file evaluator.hpp.
|
inlineprotected |
Definition at line 242 of file evaluator.hpp.
|
inlineprotected |
Definition at line 616 of file evaluator.hpp.
|
inlineprotected |
Definition at line 622 of file evaluator.hpp.
|
inlineprotected |
Definition at line 628 of file evaluator.hpp.
|
inlineprotected |
Definition at line 640 of file evaluator.hpp.
|
inlineprotected |
Definition at line 634 of file evaluator.hpp.
|
inlineprotected |
Definition at line 306 of file evaluator.hpp.
|
inlineprotected |
Definition at line 646 of file evaluator.hpp.
|
inlineprotected |
Definition at line 652 of file evaluator.hpp.
|
inlineprotected |
Definition at line 664 of file evaluator.hpp.
|
inlineprotected |
Definition at line 658 of file evaluator.hpp.
|
inline |
Performs all the operations required to calculate the dependent variables with a (potentially) new data type
| indepNew | The new independent variables. |
| depNew | The new dependent variable vector to be computed. |
| depOld | Dependent variable vector representing the operations that are going to be executed to determine the new variables (all variables must belong to the same code handler) |
| CGException | on error (such as an different sizes of depNew and depOld or an unhandled operation type) |
Definition at line 114 of file evaluator.hpp.
|
inline |
Performs all the operations required to calculate the dependent variables with a (potentially) new data type
| indepNew | The new independent variables. |
| depOld | Dependent variable vector representing the operations that are going to be executed to determine the new variables (all variables must belong to the same code handler) |
| CGException | on error (such as an unhandled operation type) |
Definition at line 93 of file evaluator.hpp.
|
inline |
Performs all the operations required to calculate the dependent variables with a (potentially) new data type
| indepNew | The new independent variables. |
| indepSize | The size of the array of independent variables. |
| depNew | The new dependent variable vector that will be created. |
| depOld | Dependent variable vector representing the operations that are going to be executed to determine the new variables (all variables must belong to the same code handler) |
| depSize | The size of the array of dependent variables. |
| CGException | on error (such as an unhandled operation type) |
Definition at line 137 of file evaluator.hpp.
|
inlineinherited |
Performs all the operations required to calculate the dependent variables with a (potentially) new data type
| indepNew | The new independent variables. |
| depNew | The new dependent variable vector to be computed. |
| depOld | Dependent variable vector representing the operations that are going to be executed to determine the new variables (all variables must belong to the same code handler) |
| CGException | on error (such as an different sizes of depNew and depOld or an unhandled operation type) |
Definition at line 114 of file evaluator.hpp.
|
inlineinherited |
Performs all the operations required to calculate the dependent variables with a (potentially) new data type
| indepNew | The new independent variables. |
| depOld | Dependent variable vector representing the operations that are going to be executed to determine the new variables (all variables must belong to the same code handler) |
| CGException | on error (such as an unhandled operation type) |
Definition at line 93 of file evaluator.hpp.
Referenced by evaluate(), evaluate(), CppAD::cg::BipartiteGraph< Base >::generateNewModel(), and CppAD::cg::DummyDerivatives< Base >::generateReorderedModel().
|
inlineinherited |
Performs all the operations required to calculate the dependent variables with a (potentially) new data type
| indepNew | The new independent variables. |
| indepSize | The size of the array of independent variables. |
| depNew | The new dependent variable vector that will be created. |
| depOld | Dependent variable vector representing the operations that are going to be executed to determine the new variables (all variables must belong to the same code handler) |
| depSize | The size of the array of dependent variables. |
| CGException | on error (such as an unhandled operation type) |
Definition at line 137 of file evaluator.hpp.
|
inlineprotected |
Definition at line 676 of file evaluator.hpp.
|
inline |
Definition at line 78 of file evaluator.hpp.
|
inlineprotected |
Definition at line 190 of file evaluator.hpp.
|
inlineprotected |
Definition at line 684 of file evaluator.hpp.
|
inlineprotected |
Definition at line 267 of file evaluator.hpp.
|
inlineprotectedinherited |
Definition at line 267 of file evaluator.hpp.
|
protected |
Definition at line 56 of file evaluator.hpp.
|
protected |
Definition at line 52 of file evaluator.hpp.
|
protected |
Definition at line 53 of file evaluator.hpp.
|
protected |
Definition at line 54 of file evaluator.hpp.
|
protected |
Definition at line 50 of file evaluator.hpp.
|
protected |
Definition at line 51 of file evaluator.hpp.
|
protected |
Definition at line 57 of file evaluator.hpp.
|
protected |
Definition at line 55 of file evaluator.hpp.