CppADCodeGen 2.4.3
A C++ Algorithmic Differentiation Package with Source Code Generation
|
#include <loop_model.hpp>
Public Types | |
using | CGB = CppAD::cg::CG<Base> |
using | Arg = Argument<Base> |
using | pairss = std::pair<size_t, size_t> |
Static Public Member Functions | |
static void | printOriginalVariableIndexes (std::ostringstream &ss, const std::vector< LoopPosition > &indexes) |
Static Public Attributes | |
static const std::string | ITERATION_INDEX_NAME |
A model representing a loop body for source code generation
Definition at line 27 of file loop_model.hpp.
using CppAD::cg::LoopModel< Base >::Arg = Argument<Base> |
Definition at line 30 of file loop_model.hpp.
using CppAD::cg::LoopModel< Base >::CGB = CppAD::cg::CG<Base> |
Definition at line 29 of file loop_model.hpp.
using CppAD::cg::LoopModel< Base >::pairss = std::pair<size_t, size_t> |
Definition at line 31 of file loop_model.hpp.
|
inline |
Creates a new atomic function that is responsible for defining the dependencies to calls of a user atomic function.
fun | The tape for a single loop iteration (loop model) |
containsAtoms | Whether or not fun calls atomic functions |
iterationCount | Number of loop iterations |
dependentOrigIndexes | |
indexedIndepOrigIndexes | |
nonIndexedIndepOrigIndexes | |
temporaryIndependents |
dependents
Must determine the equations which are present at the same iterations (some equations may not be present at some iterations)
independents
Definition at line 125 of file loop_model.hpp.
|
inlinevirtual |
Definition at line 486 of file loop_model.hpp.
|
inline |
Definition at line 407 of file loop_model.hpp.
|
inline |
Definition at line 465 of file loop_model.hpp.
|
inline |
Definition at line 454 of file loop_model.hpp.
|
inline |
Provides the dependent variables indexes ([tape equation][iteration])
Definition at line 291 of file loop_model.hpp.
|
inline |
Definition at line 435 of file loop_model.hpp.
|
inline |
Provides groups of equations present at the same iterations
Definition at line 298 of file loop_model.hpp.
Referenced by CppAD::cg::loops::HessianWithLoopsInfo< Base >::evalLoopModelJacobianHessian().
|
inline |
Definition at line 482 of file loop_model.hpp.
|
inline |
Definition at line 439 of file loop_model.hpp.
|
inline |
Provides the indexed independent variables ([tape variable][iteration])
Definition at line 309 of file loop_model.hpp.
Referenced by CppAD::cg::IterEquationGroup< Base >::evalHessianSparsity().
|
inline |
Finds the local tape variable indexes which use a given model variable at a given iteration
origJ | the index of the variable in the original model |
iteration | the iteration |
Definition at line 374 of file loop_model.hpp.
|
inline |
Finds the local tape variable indexes which use a given model variable
origJ | the index of the variable in the original model |
Definition at line 393 of file loop_model.hpp.
|
inline |
Provides the number of iterations in the loop
Definition at line 254 of file loop_model.hpp.
Referenced by CppAD::cg::IterEquationGroup< Base >::evalHessianSparsity(), and CppAD::cg::ModelCSourceGen< Base >::prepareSparseHessianWithLoops().
|
inline |
Definition at line 302 of file loop_model.hpp.
|
inline |
Definition at line 461 of file loop_model.hpp.
|
inline |
Provides a unique identifier for this loop.
Definition at line 236 of file loop_model.hpp.
|
inline |
Provides the non-indexed independent variables ([tape variable])
Definition at line 316 of file loop_model.hpp.
Referenced by CppAD::cg::IterEquationGroup< Base >::evalHessianSparsity().
|
inline |
Maps the original variable indexes to non-indexed variables
Definition at line 345 of file loop_model.hpp.
|
inline |
Definition at line 338 of file loop_model.hpp.
|
inline |
Provides the tape that represents the loop model
Definition at line 263 of file loop_model.hpp.
Referenced by CppAD::cg::IterEquationGroup< Base >::evalHessianSparsity(), and CppAD::cg::loops::HessianWithLoopsInfo< Base >::evalLoopModelJacobianHessian().
|
inline |
Provides the number of dependent variables in the loop tape/model (number of equation patterns).
Definition at line 274 of file loop_model.hpp.
|
inline |
Provides the locations where a dependent variable is used
origI | the dependent variable index in the original model |
Definition at line 334 of file loop_model.hpp.
|
inline |
Provides the number of independent variables in the loop tape/model (number of indexed + non-indexed + temporary variables).
Definition at line 284 of file loop_model.hpp.
|
inline |
Maps the temporary variable indexes to temporary variables
Definition at line 357 of file loop_model.hpp.
|
inline |
Provides the independent variables related with temporary variables of the original model.
Definition at line 324 of file loop_model.hpp.
Referenced by CppAD::cg::IterEquationGroup< Base >::evalHessianSparsity().
|
inline |
Whether or not the tape for the loop calls atomic functions.
Definition at line 245 of file loop_model.hpp.
|
inline |
Definition at line 450 of file loop_model.hpp.
|
inline |
Definition at line 443 of file loop_model.hpp.
|
inlinestatic |
Definition at line 496 of file loop_model.hpp.
|
static |
Definition at line 33 of file loop_model.hpp.