Minsky: 3.17.0
|
#include <equations.h>
Public Member Functions | |
VariableDAG () | |
reference to operation if this is an integral variable More... | |
VariableDAG (const string &valueId, const string &name, Type type) | |
int | BODMASlevel () const override |
algebraic heirarchy level, used for working out whether brackets are necessary. More... | |
int | order (unsigned maxOrder) const override |
returns evaluation order in sequence of variable defintions More... | |
bool | tensorEval (std::set< const Node *> &) const override |
returns true if the evaluation of this involves tensor processing More... | |
ostream & | latex (ostream &) const override |
writes LaTeX representation of this DAG to the stream More... | |
ostream & | matlab (ostream &) const override |
writes a matlab representation of this DAG to the stream More... | |
VariableValuePtr | addEvalOps (EvalOpVector &, const VariableValuePtr &v={}) override |
adds EvalOps to an EvalOpVector representing this node. More... | |
void | render (ecolab::cairo::Surface &surf) const override |
renders a visual representation of this node to surf graphic extends right from the current pen position (which needs to be defined), and pen is moved to the right edge of the graphic. The determine bounding box, render into a recording surface, and use width()/height() More... | |
NodePtr | derivative (SystemOfEquations &) const override |
support for the derivative operator. More... | |
bool | addTensorOp (EvalOpVector &ev) |
adds a TensorEvalOp, returns true if successful More... | |
virtual bool | tensorEval (std::set< const Node * > &visited) const=0 |
returns true if the evaluation of this involves tensor processing More... | |
bool | tensorEval () |
returns true if the evaluation of this involves tensor processing More... | |
virtual ostream & | latex (ostream &) const=0 |
writes LaTeX representation of this DAG to the stream More... | |
LaTeXManip | latex () const |
used within io streaming More... | |
virtual ostream & | matlab (ostream &) const=0 |
writes a matlab representation of this DAG to the stream More... | |
MatlabManip | matlab () const |
virtual VariableValuePtr | addEvalOps (EvalOpVector &, const VariableValuePtr &result={})=0 |
adds EvalOps to an EvalOpVector representing this node. More... | |
![]() | |
virtual | ~Node () |
std::string | latexStr () const |
std::string | matlabStr () const |
bool | tensorEval () |
returns true if the evaluation of this involves tensor processing More... | |
LaTeXManip | latex () const |
used within io streaming More... | |
MatlabManip | matlab () const |
Public Attributes | |
string | valueId |
Type | type =undefined |
string | name |
string | init ="0" |
WeakNodePtr | rhs |
IntOp * | intOp =0 |
![]() | |
int | cachedOrder =-1 |
VariableValuePtr | result |
reference to where this node's value is stored More... | |
Additional Inherited Members | |
![]() | |
enum | Type { undefined, constant, parameter, flow, integral, stock, tempFlow, numVarTypes } |
![]() | |
static std::string | typeName (int t) |
Definition at line 171 of file equations.h.
|
inline |
reference to operation if this is an integral variable
Definition at line 181 of file equations.h.
|
inline |
Definition at line 182 of file equations.h.
virtual VariableValuePtr MathDAG::Node::addEvalOps |
adds EvalOps to an EvalOpVector representing this node.
|
overridevirtual |
adds EvalOps to an EvalOpVector representing this node.
Implements MathDAG::Node.
Reimplemented in MathDAG::IntegralInputVariableDAG.
Definition at line 120 of file equations.cc.
References MathDAG::anonymous_namespace{equations.cc}::addTensorOp(), minsky::doOneEvent(), minsky::isValueId(), minsky::minsky(), minsky::VariableType::tempFlow, minsky::VariableType::undefined, minsky::valueId(), and minsky::Minsky::variableValues.
bool MathDAG::VariableDAG::addTensorOp | ( | EvalOpVector & | ev | ) |
adds a TensorEvalOp, returns true if successful
Definition at line 111 of file equations.cc.
References MathDAG::anonymous_namespace{equations.cc}::addTensorOp().
|
inlineoverridevirtual |
algebraic heirarchy level, used for working out whether brackets are necessary.
Implements MathDAG::Node.
Definition at line 184 of file equations.h.
|
overridevirtual |
support for the derivative operator.
Implements MathDAG::Node.
Definition at line 34 of file derivative.cc.
virtual ostream& MathDAG::Node::latex |
writes LaTeX representation of this DAG to the stream
|
inline |
used within io streaming
Definition at line 119 of file equations.h.
|
overridevirtual |
writes LaTeX representation of this DAG to the stream
Implements MathDAG::Node.
Definition at line 98 of file node_latex.cc.
References MathDAG::mathrm().
|
inline |
Definition at line 120 of file equations.h.
virtual ostream& MathDAG::Node::matlab |
writes a matlab representation of this DAG to the stream
|
overridevirtual |
writes a matlab representation of this DAG to the stream
Implements MathDAG::Node.
Definition at line 72 of file node_matlab.cc.
References MathDAG::anonymous_namespace{node_matlab.cc}::validMatlabIdentifier().
|
inlineoverridevirtual |
returns evaluation order in sequence of variable defintions
maxOrder | is used to limit the recursion depth |
Implements MathDAG::Node.
Definition at line 185 of file equations.h.
References MathDAG::Node::order().
Referenced by MathDAG::anonymous_namespace{equations.cc}::VariableDefOrder::operator()().
|
overridevirtual |
renders a visual representation of this node to surf graphic extends right from the current pen position (which needs to be defined), and pen is moved to the right edge of the graphic. The determine bounding box, render into a recording surface, and use width()/height()
Implements MathDAG::Node.
Definition at line 219 of file equationDisplayRender.cc.
References minsky::latexToPango(), MathDAG::mathrm(), and MathDAG::anonymous_namespace{equationDisplayRender.cc}::print().
|
overridevirtual |
returns true if the evaluation of this involves tensor processing
visited | set to break graph cycles |
Implements MathDAG::Node.
Definition at line 106 of file equations.cc.
References minsky::cminsky(), minsky::valueId(), and minsky::Minsky::variableValues.
|
inline |
returns true if the evaluation of this involves tensor processing
Definition at line 116 of file equations.h.
virtual bool MathDAG::Node::tensorEval |
returns true if the evaluation of this involves tensor processing
visited | set to break graph cycles |
string MathDAG::VariableDAG::init ="0" |
Definition at line 177 of file equations.h.
Referenced by MathDAG::anonymous_namespace{equationDisplayRender.cc}::variableRender().
IntOp* MathDAG::VariableDAG::intOp =0 |
Definition at line 179 of file equations.h.
Referenced by MathDAG::SystemOfEquations::SystemOfEquations().
string MathDAG::VariableDAG::name |
Definition at line 176 of file equations.h.
Referenced by MathDAG::SystemOfEquations::derivative(), MathDAG::SystemOfEquations::SystemOfEquations(), and MathDAG::anonymous_namespace{equationDisplayRender.cc}::variableRender().
WeakNodePtr MathDAG::VariableDAG::rhs |
Definition at line 178 of file equations.h.
Referenced by MathDAG::SystemOfEquations::derivative(), MathDAG::SystemOfEquations::SystemOfEquations(), and MathDAG::anonymous_namespace{equationDisplayRender.cc}::variableRender().
Definition at line 175 of file equations.h.
Referenced by MathDAG::SystemOfEquations::derivative().
string MathDAG::VariableDAG::valueId |
Definition at line 174 of file equations.h.
Referenced by MathDAG::SystemOfEquations::derivative().