|
| Loop (EquationPattern< Base > &eq) |
|
| Loop (const Loop< Base > &other)=delete |
|
Loop & | operator= (const Loop< Base > &rhs)=delete |
|
void | addEquation (EquationPattern< Base > &eq) |
|
void | setLinkedDependents (const std::set< std::set< size_t > *> &newLoopRelations) |
|
void | addLinkedEquationsByNonIndexed (EquationPattern< Base > *eq1, EquationPattern< Base > *eq2) |
|
size_t | getLinkedEquationsByNonIndexedCount () const |
|
size_t | getIterationCount () const |
|
const std::vector< std::set< size_t > > & | getIterationDependents () const |
|
LoopModel< Base > * | getModel () const |
|
LoopModel< Base > * | releaseLoopModel () |
|
void | merge (Loop< Base > &other, const std::set< EquationPattern< Base > *> &indexedLoopRelations, const std::vector< std::pair< EquationPattern< Base > *, EquationPattern< Base > *> > &nonIndexedLoopRelations) |
|
void | mergeEqGroups (Loop< Base > &other) |
|
void | createLoopModel (const std::vector< CG< Base > > &dependents, const std::vector< CG< Base > > &independents, const std::map< size_t, EquationPattern< Base > *> &dep2Equation, std::map< OperationNode< Base > *, size_t > &origTemp2Index) |
|
void | generateDependentLoopIndexes (const std::map< size_t, EquationPattern< Base > *> &dep2Equation) |
|
virtual | ~Loop () |
|
template<class Base>
class CppAD::cg::Loop< Base >
A for loop.
Definition at line 102 of file declare_cg.hpp.
◆ ~Loop()
◆ createLoopModel()
template<class Base>
void CppAD::cg::Loop< Base >::createLoopModel |
( |
const std::vector< CG< Base > > & |
dependents, |
|
|
const std::vector< CG< Base > > & |
independents, |
|
|
const std::map< size_t, EquationPattern< Base > *> & |
dep2Equation, |
|
|
std::map< OperationNode< Base > *, size_t > & |
origTemp2Index |
|
) |
| |
|
inline |
Determine the reference iteration for each
independent variable index patterns
Clean-up
Definition at line 283 of file loop.hpp.
◆ generateDependentLoopIndexes()
assign a dependent variable from each equation to an iteration
place dependents which only share non-indexed variables
- Todo:
- reorder iterations according to the lowest dependent in each iteration if there were new iterations only with dependents related by non-indexed shared variables
Definition at line 382 of file loop.hpp.
◆ getIterationCount()
The number of iterations this loop will have
Definition at line 209 of file loop.hpp.
◆ merge()
Combines the provided loop with the current one
- Parameters
-
Definition at line 232 of file loop.hpp.
◆ mergeEqGroups()
Update equation index
Definition at line 262 of file loop.hpp.
◆ equations
◆ indexedOpIndep
Which argument positions of operations (from the reference dependent) use indexed independent variables (operation -> argument index -> iteration -> independent)
Definition at line 65 of file loop.hpp.
The documentation for this class was generated from the following files:
- /local/robotpkg/var/tmp/robotpkg/wip/cppadcodegen/work/CppADCodeGen-2.3.0/include/cppad/cg/declare_cg.hpp
- /local/robotpkg/var/tmp/robotpkg/wip/cppadcodegen/work/CppADCodeGen-2.3.0/include/cppad/cg/patterns/loop.hpp