CppADCodeGen
HEAD
A C++ Algorithmic Differentiation Package with Source Code Generation
|
Public Member Functions | |
Vnode (size_t index, int tapeIndex, const std::string &name) | |
Vnode (size_t index, size_t tapeIndex, Vnode< Base > *derivativeOf, const std::string &name="") | |
virtual const std::string & | name () const |
size_t | tapeIndex () const |
void | setTapeIndex (size_t tapeIndex) |
std::vector< Enode< Base > * > & | equations () |
const std::vector< Enode< Base > * > & | equations () const |
Vnode< Base > * | derivative () const |
Vnode< Base > * | antiDerivative () const |
Vnode< Base > * | originalVariable () |
Vnode< Base > * | originalVariable (size_t origVarSize) |
bool | isDeleted () const |
void | makeParameter (std::ostream &out=std::cout, Verbosity verbosity=Verbosity::None) |
bool | isParameter () const |
void | deleteNode (std::ostream &out=std::cout, Verbosity verbosity=Verbosity::None) |
Enode< Base > * | assignmentEquation () const |
void | setAssignmentEquation (Enode< Base > &i, std::ostream &out=std::cout, Verbosity verbosity=Verbosity::None) |
virtual std::string | nodeType () |
void | setDerivative (Vnode< Base > *div) |
unsigned int | order () const |
void | color (std::ostream &out=std::cout, Verbosity verbosity=Verbosity::None) |
void | uncolor () |
bool | isColored () const |
size_t | index () const |
void | setIndex (size_t index) |
Protected Member Functions | |
void | addEquation (Enode< Base > *i) |
Protected Attributes | |
bool | deleted_ |
bool | parameter_ |
std::vector< Enode< Base > * > | enodes_ |
Enode< Base > * | assign_ |
Vnode< Base > * | derivative_ |
Vnode< Base > *const | antiDerivative_ |
size_t | tapeIndex_ |
std::string | name_ |
size_t | index_ |
bool | colored_ |
Static Protected Attributes | |
static const std::string | TYPE = "Variable" |
Friends | |
class | Enode< Base > |
Variable nodes
Definition at line 75 of file bipartite_nodes.hpp.
|
inline |
Definition at line 322 of file bipartite_nodes.hpp.
Referenced by CppAD::cg::DummyDerivatives< Base >::addDummyDerivatives(), CppAD::cg::BipartiteGraph< Base >::BipartiteGraph(), CppAD::cg::BipartiteGraph< Base >::generateNewModel(), CppAD::cg::DummyDerivatives< Base >::matchVars2Eqs4Elimination(), CppAD::cg::BipartiteGraph< Base >::printModel(), and CppAD::cg::BipartiteGraph< Base >::remove().
|
inline |
Definition at line 315 of file bipartite_nodes.hpp.
Referenced by CppAD::cg::DummyDerivatives< Base >::addDummyDerivatives(), CppAD::cg::BipartiteGraph< Base >::BipartiteGraph(), CppAD::cg::BipartiteGraph< Base >::generateNewModel(), CppAD::cg::BipartiteGraph< Base >::getStructuralIndex(), CppAD::cg::BipartiteGraph< Base >::printModel(), and CppAD::cg::BipartiteGraph< Base >::remove().
|
protected |
the variable which was differentiated to create this one
Definition at line 246 of file bipartite_nodes.hpp.
|
protected |
the time derivative variable of this variable (A in Pantelides algorithm)
Definition at line 242 of file bipartite_nodes.hpp.
|
protected |
Equations that use this variable. A vector is used instead of a set to ensure reproducibility.
Definition at line 233 of file bipartite_nodes.hpp.
|
protected |
name
Definition at line 254 of file bipartite_nodes.hpp.
|
protected |
Whether or not this variable is time dependent
Definition at line 228 of file bipartite_nodes.hpp.
|
protected |
The index in the tape
Definition at line 250 of file bipartite_nodes.hpp.