CppADCodeGen 2.4.3
A C++ Algorithmic Differentiation Package with Source Code Generation
|
#include <linear_index_pattern.hpp>
Public Member Functions | |
LinearIndexPattern (long xOffset, long dy, long dx, long b) | |
long | getXOffset () const |
long | getLinearSlopeDy () const |
void | setLinearSlopeDy (long dy) |
long | getLinearSlopeDx () const |
long | getLinearConstantTerm () const |
void | setLinearConstantTerm (long b) |
IndexPatternType | getType () const override |
void | getSubIndexes (std::set< IndexPattern * > &indexes) const override |
long | evaluate (long x) const |
Static Public Member Functions | |
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 | |
long | xOffset_ |
long | dy_ |
long | dx_ |
long | b_ |
Linear pattern y = ((x - offset) / dx) * dy + b
Definition at line 25 of file linear_index_pattern.hpp.
Definition at line 35 of file linear_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().
Definition at line 76 of file linear_index_pattern.hpp.
|
inline |
Definition at line 60 of file linear_index_pattern.hpp.
|
inline |
Definition at line 56 of file linear_index_pattern.hpp.
|
inline |
Definition at line 48 of file linear_index_pattern.hpp.
|
inlineoverridevirtual |
Implements CppAD::cg::IndexPattern.
Definition at line 72 of file linear_index_pattern.hpp.
|
inlineoverridevirtual |
Implements CppAD::cg::IndexPattern.
Definition at line 68 of file linear_index_pattern.hpp.
|
inline |
Definition at line 44 of file linear_index_pattern.hpp.
|
inlinestaticinherited |
Definition at line 53 of file index_pattern_impl.hpp.
Definition at line 64 of file linear_index_pattern.hpp.
Definition at line 52 of file linear_index_pattern.hpp.
|
protected |
Definition at line 32 of file linear_index_pattern.hpp.
|
protected |
Definition at line 30 of file linear_index_pattern.hpp.
|
protected |
Definition at line 29 of file linear_index_pattern.hpp.
|
protected |
Definition at line 27 of file linear_index_pattern.hpp.