OSnLNode Class Reference

The OSnLNode Class. More...

#include <OSnLNode.h>

Inheritance diagram for OSnLNode:

OSnLNodeAbs OSnLNodeAllDiff OSnLNodeCos OSnLNodeDivide OSnLNodeE OSnLNodeExp OSnLNodeIf OSnLNodeLn OSnLNodeMax OSnLNodeMin OSnLNodeMinus OSnLNodeNegate OSnLNodeNumber OSnLNodePI OSnLNodePlus OSnLNodePower OSnLNodeProduct OSnLNodeSin OSnLNodeSqrt OSnLNodeSquare OSnLNodeSum OSnLNodeTimes OSnLNodeVariable

List of all members.

Public Member Functions

virtual std::string getTokenNumber ()
 
Returns:
the value of inodeInt

virtual std::string getTokenName ()
 
Returns:
the value of snodeName

virtual std::string getNonlinearExpressionInXML ()
OSnLNodecreateExpressionTreeFromPostfix (std::vector< OSnLNode * > nlNodeVec)
OSnLNodecreateExpressionTreeFromPrefix (std::vector< OSnLNode * > nlNodeVec)
std::vector< OSnLNode * > getPrefixFromExpressionTree ()
std::vector< OSnLNode * > preOrderOSnLNodeTraversal (std::vector< OSnLNode * > *prefixVector)
std::vector< OSnLNode * > getPostfixFromExpressionTree ()
std::vector< OSnLNode * > postOrderOSnLNodeTraversal (std::vector< OSnLNode * > *postfixVector)
virtual void getVariableIndexMap (std::map< int, int > *varIdx)
virtual double calculateFunction (double *x)=0
virtual AD< double > constructCppADTape (std::map< int, int > *cppADIdx, CppAD::vector< AD< double > > *XAD)=0
virtual OSnLNodecloneOSnLNode ()=0
 OSnLNode ()
 default constructor.
virtual ~OSnLNode ()
 default destructor.

Public Attributes

std::string snodeName
 nodeName holds the OSnLNode name
int inumberOfChildren
 numberOfChildren is the number of OSnLNode child elements
int inodeInt
 ssymbolInt is the unique integer assigned to the OSnLNode
int inodeType
 inodeType is the number of children the node has, it is set to -1 if the number is not known a prior, e.g.
OSnLNode ** m_mChildren
 m_mChildren holds all the operands, that is nodes that the current node operate on.
double m_dFunctionValue
 m_dFunctionValue holds the function value given the current variable values.
AD< double > m_CppADTape
 m_CppADTape stores the espression tree for the this OSnLNode as an AD<double>.


Detailed Description

The OSnLNode Class.

Author:
Robert Fourer, Jun Ma, Kipp Martin,
Version:
1.0, 10/05/2005
Since:
OS1.0
Remarks:
in this file we define an OSnL node for a subset of the nodes defined in the OSnL schema

Definition at line 69 of file OSnLNode.h.


Constructor & Destructor Documentation

OSnLNode::OSnLNode (  ) 

default constructor.

Definition at line 154 of file OSnLNode.cpp.

OSnLNode::~OSnLNode (  )  [virtual]

default destructor.

Definition at line 162 of file OSnLNode.cpp.


Member Function Documentation

std::string OSnLNode::getTokenNumber (  )  [virtual]

Returns:
the value of inodeInt

Reimplemented in OSnLNodeNumber, OSnLNodeE, OSnLNodePI, and OSnLNodeVariable.

Definition at line 235 of file OSnLNode.cpp.

References inodeInt, inodeType, and inumberOfChildren.

std::string OSnLNode::getTokenName (  )  [virtual]

Returns:
the value of snodeName

Reimplemented in OSnLNodeNumber, OSnLNodeE, OSnLNodePI, and OSnLNodeVariable.

Definition at line 248 of file OSnLNode.cpp.

References inodeType, inumberOfChildren, and snodeName.

std::string OSnLNode::getNonlinearExpressionInXML (  )  [virtual]

the following method writes an OSnLNode in OSiL format, it is used by OSiLWriter to take an OSInstance and write the corresponding OSiL

Returns:
the OSnLNode and its children as an OSiL string.

Reimplemented in OSnLNodeNumber, OSnLNodeE, OSnLNodePI, and OSnLNodeVariable.

Definition at line 363 of file OSnLNode.cpp.

References getNonlinearExpressionInXML(), inumberOfChildren, m_mChildren, and snodeName.

Referenced by OSnLNodeVariable::getNonlinearExpressionInXML(), getNonlinearExpressionInXML(), and OSiLWriter::writeOSiL().

OSnLNode * OSnLNode::createExpressionTreeFromPostfix ( std::vector< OSnLNode * >  nlNodeVec  ) 

Take a vector of OSnLNodes in postfix format and create an create an OSExpressionTree root node

Parameters:
nlNodeVec holds a vector of pointers to OSnLNodes in postfix format
Returns:
a pointer to an OSnLNode which is the root of and OSExpressionTree.

Definition at line 169 of file OSnLNode.cpp.

References inumberOfChildren.

Referenced by main(), and OSInstance::setQuadraticTermsInNonlinearExpressions().

OSnLNode * OSnLNode::createExpressionTreeFromPrefix ( std::vector< OSnLNode * >  nlNodeVec  ) 

Take a vector of OSnLNodes in prefix format and create an create an OSExpressionTree root node

Parameters:
nlNodeVec holds a vector of pointers to OSnLNodes in prefix format
Returns:
a pointer to an OSnLNode which is the root of and OSExpressionTree.

Definition at line 202 of file OSnLNode.cpp.

References inumberOfChildren.

Referenced by main().

std::vector< OSnLNode * > OSnLNode::getPrefixFromExpressionTree (  ) 

Get a vector of pointers to OSnLNodes that correspond to the OSExpressionTree in prefix format

Returns:
the expression tree as a vector of OSnLNodes in prefix.

Definition at line 220 of file OSnLNode.cpp.

References preOrderOSnLNodeTraversal().

Referenced by OSInstance::getNonlinearExpressionTreeInPrefix(), OSInstance::getNonlinearExpressionTreeModInPrefix(), and OSExpressionTree::getPrefixFromExpressionTree().

std::vector< OSnLNode * > OSnLNode::preOrderOSnLNodeTraversal ( std::vector< OSnLNode * > *  prefixVector  ) 

Called by getPrefixFromExpressionTree(). This method calls itself recursively and generates a vector of pointers to OSnLNodes in prefix

Parameters:
a pointer prefixVector to a vector of pointers of OSnLNodes
Returns:
a vector of pointers to OSnLNodes in prefix.

Definition at line 225 of file OSnLNode.cpp.

References inumberOfChildren, and m_mChildren.

Referenced by getPrefixFromExpressionTree().

std::vector< OSnLNode * > OSnLNode::getPostfixFromExpressionTree (  ) 

Get a vector of pointers to OSnLNodes that correspond to the OSExpressionTree in postfix format

Returns:
the expression tree as a vector of OSnLNodes in postfix.

Definition at line 187 of file OSnLNode.cpp.

References postOrderOSnLNodeTraversal().

Referenced by OSInstance::getNonlinearExpressionTreeInPostfix(), OSInstance::getNonlinearExpressionTreeModInPostfix(), OSExpressionTree::getPostfixFromExpressionTree(), and main().

std::vector< OSnLNode * > OSnLNode::postOrderOSnLNodeTraversal ( std::vector< OSnLNode * > *  postfixVector  ) 

Called by getPostfixFromExpressionTree(). This method calls itself recursively and generates a vector of pointers to OSnLNodes in postfix

Parameters:
a pointer postfixVector to a vector of pointers of OSnLNodes
Returns:
a vector of pointers to OSnLNodes in postfix.

Definition at line 192 of file OSnLNode.cpp.

References inumberOfChildren, and m_mChildren.

Referenced by getPostfixFromExpressionTree().

void OSnLNode::getVariableIndexMap ( std::map< int, int > *  varIdx  )  [virtual]

varIdx is a map where the key is the index of an OSnLNodeVariable and (*varIdx)[ idx] is the kth variable in the map, e.g. (*varIdx)[ 5] = 2 means that variable indexed by 5 is the second variable in the OSnLNode and all of its children

Parameters:
a pointer to a map of the variables in the OSnLNode and its children

Reimplemented in OSnLNodeVariable.

Definition at line 389 of file OSnLNode.cpp.

References getVariableIndexMap(), inodeInt, inumberOfChildren, m_mChildren, and OS_VARIABLE.

Referenced by getVariableIndexMap(), and OSExpressionTree::getVariableIndiciesMap().

virtual double OSnLNode::calculateFunction ( double *  x  )  [pure virtual]

Calculate the function value given the current variable values. This is an abstract method which is required to be implemented by the concrete operator nodes that derive or extend from this OSnLNode class.

Parameters:
x holds the values of the variables in a double array.
Returns:
the function value given the current variable values.

Implemented in OSnLNodePlus, OSnLNodeSum, OSnLNodeMax, OSnLNodeMin, OSnLNodeMinus, OSnLNodeNegate, OSnLNodeTimes, OSnLNodeDivide, OSnLNodePower, OSnLNodeProduct, OSnLNodeLn, OSnLNodeSqrt, OSnLNodeSquare, OSnLNodeCos, OSnLNodeSin, OSnLNodeExp, OSnLNodeAbs, OSnLNodeIf, OSnLNodeNumber, OSnLNodeE, OSnLNodePI, OSnLNodeVariable, and OSnLNodeAllDiff.

Referenced by OSnLNodeIf::calculateFunction(), OSnLNodeProduct::calculateFunction(), OSnLNodeDivide::calculateFunction(), OSnLNodeTimes::calculateFunction(), OSnLNodeNegate::calculateFunction(), OSnLNodeMinus::calculateFunction(), OSnLNodeMin::calculateFunction(), OSnLNodeMax::calculateFunction(), OSnLNodeSum::calculateFunction(), OSnLNodePlus::calculateFunction(), OSExpressionTree::calculateFunction(), and main().

virtual AD<double> OSnLNode::constructCppADTape ( std::map< int, int > *  cppADIdx,
CppAD::vector< AD< double > > *  XAD 
) [pure virtual]

Create the AD tape to be evaluated by CppAD. This is an abstract method which is required to be implemented by the concrete operator nodes that derive or extend from this OSnLNode class.

Returns:
the expression tree.

Implemented in OSnLNodePlus, OSnLNodeSum, OSnLNodeMax, OSnLNodeMin, OSnLNodeMinus, OSnLNodeNegate, OSnLNodeTimes, OSnLNodeDivide, OSnLNodePower, OSnLNodeProduct, OSnLNodeLn, OSnLNodeSqrt, OSnLNodeSquare, OSnLNodeCos, OSnLNodeSin, OSnLNodeExp, OSnLNodeAbs, OSnLNodeIf, OSnLNodeNumber, OSnLNodeE, OSnLNodePI, OSnLNodeVariable, and OSnLNodeAllDiff.

Referenced by OSnLNodeProduct::constructCppADTape(), OSnLNodeDivide::constructCppADTape(), OSnLNodeTimes::constructCppADTape(), OSnLNodeNegate::constructCppADTape(), OSnLNodeMinus::constructCppADTape(), OSnLNodeSum::constructCppADTape(), and OSnLNodePlus::constructCppADTape().

virtual OSnLNode* OSnLNode::cloneOSnLNode (  )  [pure virtual]

Create or clone a node of this type. This is an abstract method which is required to be implemented by the concrete operator nodes that derive or extend from this OSnLNode class.

Parameters:
x holds the values of the variables in a double array.
Returns:
the function value given the current variable values.

Implemented in OSnLNodePlus, OSnLNodeSum, OSnLNodeMax, OSnLNodeMin, OSnLNodeMinus, OSnLNodeNegate, OSnLNodeTimes, OSnLNodeDivide, OSnLNodePower, OSnLNodeProduct, OSnLNodeLn, OSnLNodeSqrt, OSnLNodeSquare, OSnLNodeCos, OSnLNodeSin, OSnLNodeExp, OSnLNodeAbs, OSnLNodeIf, OSnLNodeNumber, OSnLNodeE, OSnLNodePI, OSnLNodeVariable, and OSnLNodeAllDiff.


Member Data Documentation

std::string OSnLNode::snodeName

nodeName holds the OSnLNode name

Definition at line 75 of file OSnLNode.h.

Referenced by OSnLNodeVariable::getNonlinearExpressionInXML(), OSnLNodePI::getNonlinearExpressionInXML(), OSnLNodeE::getNonlinearExpressionInXML(), OSnLNodeNumber::getNonlinearExpressionInXML(), getNonlinearExpressionInXML(), OSnLNodeVariable::getTokenName(), OSnLNodePI::getTokenName(), OSnLNodeE::getTokenName(), OSnLNodeNumber::getTokenName(), getTokenName(), OSnLNodeAbs::OSnLNodeAbs(), OSnLNodeAllDiff::OSnLNodeAllDiff(), OSnLNodeCos::OSnLNodeCos(), OSnLNodeDivide::OSnLNodeDivide(), OSnLNodeE::OSnLNodeE(), OSnLNodeExp::OSnLNodeExp(), OSnLNodeIf::OSnLNodeIf(), OSnLNodeLn::OSnLNodeLn(), OSnLNodeMax::OSnLNodeMax(), OSnLNodeMin::OSnLNodeMin(), OSnLNodeMinus::OSnLNodeMinus(), OSnLNodeNegate::OSnLNodeNegate(), OSnLNodeNumber::OSnLNodeNumber(), OSnLNodePI::OSnLNodePI(), OSnLNodePlus::OSnLNodePlus(), OSnLNodePower::OSnLNodePower(), OSnLNodeProduct::OSnLNodeProduct(), OSnLNodeSin::OSnLNodeSin(), OSnLNodeSqrt::OSnLNodeSqrt(), OSnLNodeSquare::OSnLNodeSquare(), OSnLNodeSum::OSnLNodeSum(), OSnLNodeTimes::OSnLNodeTimes(), and OSnLNodeVariable::OSnLNodeVariable().

int OSnLNode::inumberOfChildren

numberOfChildren is the number of OSnLNode child elements

Definition at line 78 of file OSnLNode.h.

Referenced by OSnLNodeProduct::calculateFunction(), OSnLNodeMin::calculateFunction(), OSnLNodeMax::calculateFunction(), OSnLNodeAllDiff::calculateFunction(), OSnLNodeSum::calculateFunction(), OSnLNodeProduct::constructCppADTape(), OSnLNodeSum::constructCppADTape(), createExpressionTreeFromPostfix(), createExpressionTreeFromPrefix(), OSInstance::getLagrangianExpTree(), OSnLNodeVariable::getNonlinearExpressionInXML(), getNonlinearExpressionInXML(), OSnLNodeVariable::getTokenName(), getTokenName(), OSnLNodeVariable::getTokenNumber(), getTokenNumber(), getVariableIndexMap(), main(), OSnLNodeAbs::OSnLNodeAbs(), OSnLNodeAllDiff::OSnLNodeAllDiff(), OSnLNodeCos::OSnLNodeCos(), OSnLNodeDivide::OSnLNodeDivide(), OSnLNodeE::OSnLNodeE(), OSnLNodeExp::OSnLNodeExp(), OSnLNodeIf::OSnLNodeIf(), OSnLNodeLn::OSnLNodeLn(), OSnLNodeMax::OSnLNodeMax(), OSnLNodeMin::OSnLNodeMin(), OSnLNodeMinus::OSnLNodeMinus(), OSnLNodeNegate::OSnLNodeNegate(), OSnLNodeNumber::OSnLNodeNumber(), OSnLNodePI::OSnLNodePI(), OSnLNodePlus::OSnLNodePlus(), OSnLNodePower::OSnLNodePower(), OSnLNodeProduct::OSnLNodeProduct(), OSnLNodeSin::OSnLNodeSin(), OSnLNodeSqrt::OSnLNodeSqrt(), OSnLNodeSquare::OSnLNodeSquare(), OSnLNodeSum::OSnLNodeSum(), OSnLNodeTimes::OSnLNodeTimes(), OSnLNodeVariable::OSnLNodeVariable(), postOrderOSnLNodeTraversal(), preOrderOSnLNodeTraversal(), OSnl2osil::walkTree(), OSnLNodeAbs::~OSnLNodeAbs(), OSnLNodeAllDiff::~OSnLNodeAllDiff(), OSnLNodeCos::~OSnLNodeCos(), OSnLNodeDivide::~OSnLNodeDivide(), OSnLNodeExp::~OSnLNodeExp(), OSnLNodeIf::~OSnLNodeIf(), OSnLNodeLn::~OSnLNodeLn(), OSnLNodeMax::~OSnLNodeMax(), OSnLNodeMin::~OSnLNodeMin(), OSnLNodeMinus::~OSnLNodeMinus(), OSnLNodeNegate::~OSnLNodeNegate(), OSnLNodePlus::~OSnLNodePlus(), OSnLNodePower::~OSnLNodePower(), OSnLNodeProduct::~OSnLNodeProduct(), OSnLNodeSin::~OSnLNodeSin(), OSnLNodeSqrt::~OSnLNodeSqrt(), OSnLNodeSquare::~OSnLNodeSquare(), OSnLNodeSum::~OSnLNodeSum(), OSnLNodeTimes::~OSnLNodeTimes(), and OSnLNodeVariable::~OSnLNodeVariable().

int OSnLNode::inodeInt

ssymbolInt is the unique integer assigned to the OSnLNode

Definition at line 81 of file OSnLNode.h.

Referenced by OSnLNodeVariable::getTokenNumber(), OSnLNodePI::getTokenNumber(), OSnLNodeE::getTokenNumber(), OSnLNodeNumber::getTokenNumber(), getTokenNumber(), getVariableIndexMap(), OSnLNodeAbs::OSnLNodeAbs(), OSnLNodeAllDiff::OSnLNodeAllDiff(), OSnLNodeCos::OSnLNodeCos(), OSnLNodeDivide::OSnLNodeDivide(), OSnLNodeE::OSnLNodeE(), OSnLNodeExp::OSnLNodeExp(), OSnLNodeIf::OSnLNodeIf(), OSnLNodeLn::OSnLNodeLn(), OSnLNodeMax::OSnLNodeMax(), OSnLNodeMin::OSnLNodeMin(), OSnLNodeMinus::OSnLNodeMinus(), OSnLNodeNegate::OSnLNodeNegate(), OSnLNodeNumber::OSnLNodeNumber(), OSnLNodePI::OSnLNodePI(), OSnLNodePlus::OSnLNodePlus(), OSnLNodePower::OSnLNodePower(), OSnLNodeProduct::OSnLNodeProduct(), OSnLNodeSin::OSnLNodeSin(), OSnLNodeSqrt::OSnLNodeSqrt(), OSnLNodeSquare::OSnLNodeSquare(), OSnLNodeSum::OSnLNodeSum(), OSnLNodeTimes::OSnLNodeTimes(), and OSnLNodeVariable::OSnLNodeVariable().

int OSnLNode::inodeType

inodeType is the number of children the node has, it is set to -1 if the number is not known a prior, e.g.

a sum node

Definition at line 86 of file OSnLNode.h.

Referenced by getTokenName(), getTokenNumber(), OSnLNodeAbs::OSnLNodeAbs(), OSnLNodeAllDiff::OSnLNodeAllDiff(), OSnLNodeCos::OSnLNodeCos(), OSnLNodeDivide::OSnLNodeDivide(), OSnLNodeE::OSnLNodeE(), OSnLNodeExp::OSnLNodeExp(), OSnLNodeIf::OSnLNodeIf(), OSnLNodeLn::OSnLNodeLn(), OSnLNodeMax::OSnLNodeMax(), OSnLNodeMin::OSnLNodeMin(), OSnLNodeMinus::OSnLNodeMinus(), OSnLNodeNegate::OSnLNodeNegate(), OSnLNodeNumber::OSnLNodeNumber(), OSnLNodePI::OSnLNodePI(), OSnLNodePlus::OSnLNodePlus(), OSnLNodePower::OSnLNodePower(), OSnLNodeProduct::OSnLNodeProduct(), OSnLNodeSin::OSnLNodeSin(), OSnLNodeSqrt::OSnLNodeSqrt(), OSnLNodeSquare::OSnLNodeSquare(), OSnLNodeSum::OSnLNodeSum(), OSnLNodeTimes::OSnLNodeTimes(), and OSnLNodeVariable::OSnLNodeVariable().

OSnLNode** OSnLNode::m_mChildren

m_mChildren holds all the operands, that is nodes that the current node operate on.

Definition at line 91 of file OSnLNode.h.

Referenced by OSInstance::addQTermsToExressionTree(), OSnLNodeIf::calculateFunction(), OSnLNodeAbs::calculateFunction(), OSnLNodeExp::calculateFunction(), OSnLNodeCos::calculateFunction(), OSnLNodeSin::calculateFunction(), OSnLNodeSquare::calculateFunction(), OSnLNodeSqrt::calculateFunction(), OSnLNodeLn::calculateFunction(), OSnLNodeProduct::calculateFunction(), OSnLNodePower::calculateFunction(), OSnLNodeDivide::calculateFunction(), OSnLNodeTimes::calculateFunction(), OSnLNodeNegate::calculateFunction(), OSnLNodeMinus::calculateFunction(), OSnLNodeMin::calculateFunction(), OSnLNodeMax::calculateFunction(), OSnLNodeAllDiff::calculateFunction(), OSnLNodeSum::calculateFunction(), OSnLNodePlus::calculateFunction(), OSnLNodeAbs::constructCppADTape(), OSnLNodeExp::constructCppADTape(), OSnLNodeCos::constructCppADTape(), OSnLNodeSin::constructCppADTape(), OSnLNodeSquare::constructCppADTape(), OSnLNodeSqrt::constructCppADTape(), OSnLNodeLn::constructCppADTape(), OSnLNodeProduct::constructCppADTape(), OSnLNodePower::constructCppADTape(), OSnLNodeDivide::constructCppADTape(), OSnLNodeTimes::constructCppADTape(), OSnLNodeNegate::constructCppADTape(), OSnLNodeMinus::constructCppADTape(), OSnLNodeSum::constructCppADTape(), OSnLNodePlus::constructCppADTape(), OSInstance::getAllNonlinearExpressionTrees(), OSInstance::getLagrangianExpTree(), OSnLNodeVariable::getNonlinearExpressionInXML(), getNonlinearExpressionInXML(), OSInstance::getSparseJacobianFromColumnMajor(), OSInstance::getSparseJacobianFromRowMajor(), getVariableIndexMap(), main(), OSnLNodeAbs::OSnLNodeAbs(), OSnLNodeCos::OSnLNodeCos(), OSnLNodeDivide::OSnLNodeDivide(), OSnLNodeE::OSnLNodeE(), OSnLNodeExp::OSnLNodeExp(), OSnLNodeIf::OSnLNodeIf(), OSnLNodeLn::OSnLNodeLn(), OSnLNodeMinus::OSnLNodeMinus(), OSnLNodeNegate::OSnLNodeNegate(), OSnLNodeNumber::OSnLNodeNumber(), OSnLNodePI::OSnLNodePI(), OSnLNodePlus::OSnLNodePlus(), OSnLNodePower::OSnLNodePower(), OSnLNodeSin::OSnLNodeSin(), OSnLNodeSqrt::OSnLNodeSqrt(), OSnLNodeSquare::OSnLNodeSquare(), OSnLNodeTimes::OSnLNodeTimes(), OSnLNodeVariable::OSnLNodeVariable(), postOrderOSnLNodeTraversal(), preOrderOSnLNodeTraversal(), OSnl2osil::walkTree(), OSnLNodeAbs::~OSnLNodeAbs(), OSnLNodeAllDiff::~OSnLNodeAllDiff(), OSnLNodeCos::~OSnLNodeCos(), OSnLNodeDivide::~OSnLNodeDivide(), OSnLNodeE::~OSnLNodeE(), OSnLNodeExp::~OSnLNodeExp(), OSnLNodeIf::~OSnLNodeIf(), OSnLNodeLn::~OSnLNodeLn(), OSnLNodeMax::~OSnLNodeMax(), OSnLNodeMin::~OSnLNodeMin(), OSnLNodeMinus::~OSnLNodeMinus(), OSnLNodeNegate::~OSnLNodeNegate(), OSnLNodeNumber::~OSnLNodeNumber(), OSnLNodePI::~OSnLNodePI(), OSnLNodePlus::~OSnLNodePlus(), OSnLNodePower::~OSnLNodePower(), OSnLNodeProduct::~OSnLNodeProduct(), OSnLNodeSin::~OSnLNodeSin(), OSnLNodeSqrt::~OSnLNodeSqrt(), OSnLNodeSquare::~OSnLNodeSquare(), OSnLNodeSum::~OSnLNodeSum(), OSnLNodeTimes::~OSnLNodeTimes(), and OSnLNodeVariable::~OSnLNodeVariable().

double OSnLNode::m_dFunctionValue

m_dFunctionValue holds the function value given the current variable values.

Definition at line 96 of file OSnLNode.h.

Referenced by OSnLNodeVariable::calculateFunction(), OSnLNodePI::calculateFunction(), OSnLNodeE::calculateFunction(), OSnLNodeNumber::calculateFunction(), OSnLNodeIf::calculateFunction(), OSnLNodeAbs::calculateFunction(), OSnLNodeExp::calculateFunction(), OSnLNodeCos::calculateFunction(), OSnLNodeSin::calculateFunction(), OSnLNodeSquare::calculateFunction(), OSnLNodeSqrt::calculateFunction(), OSnLNodeLn::calculateFunction(), OSnLNodeProduct::calculateFunction(), OSnLNodePower::calculateFunction(), OSnLNodeDivide::calculateFunction(), OSnLNodeTimes::calculateFunction(), OSnLNodeNegate::calculateFunction(), OSnLNodeMinus::calculateFunction(), OSnLNodeMin::calculateFunction(), OSnLNodeMax::calculateFunction(), OSnLNodeAllDiff::calculateFunction(), OSnLNodeSum::calculateFunction(), and OSnLNodePlus::calculateFunction().

AD<double> OSnLNode::m_CppADTape

m_CppADTape stores the espression tree for the this OSnLNode as an AD<double>.

Definition at line 102 of file OSnLNode.h.

Referenced by OSnLNodeVariable::constructCppADTape(), OSnLNodePI::constructCppADTape(), OSnLNodeE::constructCppADTape(), OSnLNodeNumber::constructCppADTape(), OSnLNodeIf::constructCppADTape(), OSnLNodeAbs::constructCppADTape(), OSnLNodeExp::constructCppADTape(), OSnLNodeCos::constructCppADTape(), OSnLNodeSin::constructCppADTape(), OSnLNodeSquare::constructCppADTape(), OSnLNodeSqrt::constructCppADTape(), OSnLNodeLn::constructCppADTape(), OSnLNodeProduct::constructCppADTape(), OSnLNodePower::constructCppADTape(), OSnLNodeDivide::constructCppADTape(), OSnLNodeTimes::constructCppADTape(), OSnLNodeNegate::constructCppADTape(), OSnLNodeMinus::constructCppADTape(), OSnLNodeMin::constructCppADTape(), OSnLNodeMax::constructCppADTape(), OSnLNodeAllDiff::constructCppADTape(), OSnLNodeSum::constructCppADTape(), and OSnLNodePlus::constructCppADTape().


The documentation for this class was generated from the following files:
Generated on Sat Mar 29 22:38:06 2008 by  doxygen 1.5.3