CppADCodeGen  HEAD
A C++ Algorithmic Differentiation Package with Source Code Generation
CppAD::cg::RandomIndexPattern Class Referenceabstract
Inheritance diagram for CppAD::cg::RandomIndexPattern:
Inheritance graph
Collaboration diagram for CppAD::cg::RandomIndexPattern:
Collaboration graph

Public Member Functions

void getSubIndexes (std::set< IndexPattern *> &indexes) const override
 
const std::string & getName () const
 
void setName (const std::string &name)
 
virtual IndexPatternType getType () const =0
 

Static Public Member Functions

template<class VectorSizeT >
static IndexPatterndetect (const VectorSizeT &x2y)
 
static IndexPatterndetect (const std::map< size_t, size_t > &x2y)
 
static bool isConstant (const IndexPattern &ip)
 

Protected Attributes

std::string name_
 

Detailed Description

Random pattern

Definition at line 25 of file random_index_pattern.hpp.

Member Function Documentation

◆ detect() [1/2]

template<class VectorSizeT >
IndexPattern * CppAD::cg::IndexPattern::detect ( const VectorSizeT &  x2y)
inlinestaticinherited

Detects the index pattern for the provided points (y = f(x))

Parameters
indexXthe index of the independents (x)
x2ymaps the independents to the dependents (indexes[x] = y )
Returns
the generated index pattern (must be deleted by user)

Definition at line 22 of file index_pattern_impl.hpp.

Referenced by CppAD::cg::Plane2DIndexPattern::detectPlane2D(), CppAD::cg::LoopModel< Base >::getIndexedTapeIndexes(), CppAD::cg::ModelCSourceGen< Base >::prepareSparseForwardOneWithLoops(), CppAD::cg::ModelCSourceGen< Base >::prepareSparseJacobianRowWithLoops(), and CppAD::cg::ModelCSourceGen< Base >::prepareSparseReverseOneWithLoops().

◆ detect() [2/2]

IndexPattern * CppAD::cg::IndexPattern::detect ( const std::map< size_t, size_t > &  x2y)
inlinestaticinherited

Detects the index pattern for the provided points (y = f(x))

Parameters
indexXthe index of the independents (x)
x2ymaps the independents to the dependents (x,y)
Returns
the generated index pattern (must be deleted by user)

Definition at line 38 of file index_pattern_impl.hpp.


The documentation for this class was generated from the following file: