34 #ifndef ACADO_TOOLKIT_FUNCTION__HPP 35 #define ACADO_TOOLKIT_FUNCTION__HPP 105 inline int getDim ()
const;
112 inline int getN ()
const;
203 const int &number = 0 );
215 const int &number = 0 );
355 const int &number = 0 );
382 const int &number = 0 );
457 const char *fcnName =
"ACADOfcn",
458 const char *realString =
"double" 462 const char *fcnName =
"ACADOfcn",
463 const char *realString =
"double" 467 const char *fcnName =
"ACADOfcn",
468 const char *realString =
"double",
475 bool allocateMemory =
true,
476 bool staticMemory =
false 538 #include <acado/function/function.ipp> 541 #endif // ACADO_TOOLKIT_FUNCTION__HPP BooleanType isRationalIn(const Expression &variable)
std::string getGlobalExportVariableName() const
Allows to setup and evaluate a general function based on SymbolicExpressions.
Implements a templated dense matrix class.
Abstract base class for all scalar-valued symbolic operators.
returnValue setMemoryOffset(int memoryOffset_)
BooleanType isSymbolic() const
Allows to pass back messages to the calling function.
DVector evaluate(const EvaluationPoint &x, const int &number=0)
Allows to setup function evaluation points.
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
Tmatrix< T > * getEvaluationPointer() const
returnValue AD_backward2(int number, double *seed1, double *seed2, double *df, double *ddf)
#define CLOSE_NAMESPACE_ACADO
returnValue substitute(VariableType variableType_, int index_, double sub_)
returnValue setGlobalExportVariableName(const std::string &var)
returnValue getExpression(Expression &expression) const
returnValue print(std::ostream &stream, const char *fcnName="ACADOfcn", const char *realString="double") const
BooleanType isNonincreasing()
Base class for all variables within the symbolic expressions family.
returnValue jacobian(DMatrix &x)
calculate the jacobian of an evaluated function
virtual returnValue evaluate(double *x, double *result)
BooleanType isLinearIn(const Expression &variable)
unsigned getGlobalExportVariableSize() const
returnValue setScale(double *scale_)
returnValue exportCode(std::ostream &stream, 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
double scale(VariableType variableType_, int index_) const
FunctionEvaluationTree evaluationTree
Function & operator=(const Function &rhs)
BooleanType isDependingOn(const Expression &variable)
returnValue clearBuffer()
int index(VariableType variableType_, int index_) const
BooleanType ADisSupported() const
void rhs(const real_t *x, real_t *f)
returnValue AD_backward(const DVector &seed, EvaluationPoint &df, const int &number=0)
Organizes the evaluation of the function tree.
DVector AD_forward(const EvaluationPoint &x, const int &number=0)
returnValue exportForwardDeclarations(std::ostream &stream, const char *fcnName="ACADOfcn", const char *realString="double") const
#define BEGIN_NAMESPACE_ACADO
returnValue AD_forward2(int number, double *seed1, double *seed2, double *df, double *ddf)
Function & operator<<(const Expression &arg)
NeutralElement isOneOrZero()
BooleanType isNondecreasing()
Function operator()(uint idx) const
int getNumberOfVariables() const
Allows to setup function evaluation points.
BooleanType isPolynomialIn(const Expression &variable)