34 #ifndef ACADO_TOOLKIT_FUNCTION_EVALUATION_TREE_HPP 35 #define ACADO_TOOLKIT_FUNCTION_EVALUATION_TREE_HPP 80 virtual int getDim ()
const;
87 virtual int getN ()
const;
93 virtual int getNX ()
const;
98 virtual int getNXA ()
const;
104 virtual int getNDX ()
const;
110 virtual int getNU ()
const;
115 virtual int getNUI ()
const;
120 virtual int getNP ()
const;
125 virtual int getNPI ()
const;
130 virtual int getNW ()
const;
135 virtual int getNT ()
const;
138 virtual int getNOD ()
const;
413 const char *fcnName =
"ACADOfcn",
414 const char *realString =
"double" 418 const char *fcnName =
"ACADOfcn",
419 const char *realString =
"double" 423 const char *fcnName =
"ACADOfcn",
424 const char *realString =
"double",
431 bool allocateMemory =
true,
432 bool staticMemory =
false 495 for( run1 = 0; run1 <
n; run1++ ){
500 for( run1 = 0; run1 <
dim; run1++ ){
502 result->operator()(run1) = y.
res;
514 #include <acado/function/function_evaluation_tree.ipp> 517 #endif // ACADO_TOOLKIT_FUNCTION_HPP Implements a templated dense matrix class.
virtual returnValue AD_backward2(int number, double *seed1, double *seed2, double *df, double *ddf)
virtual ~FunctionEvaluationTree()
Abstract base class for all scalar-valued symbolic operators.
virtual int getNumberOfVariables() const
virtual returnValue AD_forward(double *x, double *seed, double *f, double *df)
virtual int getNU() const
virtual returnValue AD_forward2(int number, double *seed1, double *seed2, double *df, double *ddf)
FunctionEvaluationTree * differentiate(int index)
virtual returnValue clearBuffer()
Allows to pass back messages to the calling function.
returnValue exportForwardDeclarations(std::ostream &stream=std::cout, const char *fcnName="ACADOfcn", const char *realString="double") const
virtual int getNT() const
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
returnValue C_print(std::ostream &stream=std::cout, const char *fcnName="ACADOfcn", const char *realString="double") const
std::string globalExportVariableName
int index(VariableType variableType_, int index_) const
unsigned getGlobalExportVariableSize() const
virtual returnValue AD_backward(double *seed, double *df)
#define CLOSE_NAMESPACE_ACADO
virtual int getNOD() const
virtual int getNW() const
virtual returnValue operator<<(const Expression &arg)
Manages the indices of SymbolicVariables.
virtual int getDim() const
virtual int index(VariableType variableType_, int index_) const
Base class for all variables within the symbolic expressions family.
virtual MonotonicityType getMonotonicity()
virtual Operator * getExpression(uint componentIdx) const
virtual returnValue evaluate(double *x, double *result)
virtual NeutralElement isOneOrZero()
virtual BooleanType isRationalIn(const Expression &variable)
virtual BooleanType isDependingOn(const Expression &variable)
returnValue exportCode(std::ostream &stream=std::cout, const char *fcnName="ACADOfcn", const char *realString="double", uint _numX=0, uint _numXA=0, uint _numU=0, uint _numP=0, uint _numDX=0, uint _numOD=0, bool allocateMemory=true, bool staticMemory=false) const
virtual int getNPI() const
virtual int getNDX() const
virtual int getNP() const
std::string getGlobalExportVariableName() const
virtual double scale(VariableType variableType_, int index_) const
virtual BooleanType isSymbolic() const
virtual returnValue evaluate(int number, double *x, double *result)=0
virtual int getNUI() const
Organizes the evaluation of the function tree.
virtual FunctionEvaluationTree substitute(VariableType variableType_, int index_, double sub_)
Templated class for operator evaluation.
FunctionEvaluationTree & operator=(const FunctionEvaluationTree &arg)
#define BEGIN_NAMESPACE_ACADO
returnValue setGlobalExportVariableName(const std::string &_name)
virtual returnValue setScale(double *scale_)
virtual CurvatureType getCurvature()
virtual BooleanType isLinearIn(const Expression &variable)
SymbolicIndexList * indexList
virtual int getNX() const
virtual int getNXA() const
virtual returnValue makeImplicit()
virtual BooleanType isPolynomialIn(const Expression &variable)