CppADCodeGen 2.4.3
A C++ Algorithmic Differentiation Package with Source Code Generation
|
#include <sectioned_index_pattern.hpp>
Public Member Functions | |
SectionedIndexPattern (const std::map< size_t, IndexPattern * > §ions) | |
const std::map< size_t, IndexPattern * > & | getLinearSections () const |
IndexPatternType | getType () const override |
void | getSubIndexes (std::set< IndexPattern * > &indexes) const override |
Static Public Member Functions | |
template<class VectorSizeT > | |
static std::map< size_t, IndexPattern * > | detectLinearSections (const VectorSizeT &indexes, size_t maxCount=0) |
static std::map< size_t, IndexPattern * > | detectLinearSections (const std::map< size_t, size_t > &x2y, size_t maxCount=0) |
template<class VectorSizeT > | |
static IndexPattern * | detect (const VectorSizeT &x2y) |
static IndexPattern * | detect (const std::map< size_t, size_t > &x2y) |
static bool | isConstant (const IndexPattern &ip) |
Protected Attributes | |
std::map< size_t, IndexPattern * > | sections_ |
Several linear patterns
Definition at line 25 of file sectioned_index_pattern.hpp.
|
inline |
Definition at line 33 of file sectioned_index_pattern.hpp.
|
inlinevirtual |
Definition at line 52 of file sectioned_index_pattern.hpp.
|
inlinestaticinherited |
Detects the index pattern for the provided points (y = f(x))
indexX | the index of the independents (x) |
x2y | maps the independents to the dependents (x,y) |
Definition at line 38 of file index_pattern_impl.hpp.
|
inlinestaticinherited |
Detects the index pattern for the provided points (y = f(x))
indexX | the index of the independents (x) |
x2y | maps the independents to the dependents (indexes[x] = y ) |
Definition at line 22 of file index_pattern_impl.hpp.
Referenced by CppAD::cg::Plane2DIndexPattern::detectPlane2D(), CppAD::cg::ModelCSourceGen< Base >::prepareSparseForwardOneWithLoops(), CppAD::cg::ModelCSourceGen< Base >::prepareSparseReverseOneWithLoops(), and CppAD::cg::ModelCSourceGen< Base >::prepareSparseReverseTwoWithLoops().
|
inlinestatic |
Definition at line 121 of file sectioned_index_pattern.hpp.
|
inlinestatic |
Definition at line 61 of file sectioned_index_pattern.hpp.
|
inline |
Definition at line 37 of file sectioned_index_pattern.hpp.
|
inlineoverridevirtual |
Implements CppAD::cg::IndexPattern.
Definition at line 45 of file sectioned_index_pattern.hpp.
|
inlineoverridevirtual |
Implements CppAD::cg::IndexPattern.
Definition at line 41 of file sectioned_index_pattern.hpp.
|
inlinestaticinherited |
Definition at line 53 of file index_pattern_impl.hpp.
|
protected |
maps the start of the linear section (first x) to the linear pattern
Definition at line 30 of file sectioned_index_pattern.hpp.