88 cresult = (
double**)calloc(bufferSize,
sizeof(
double*));
89 d_cresult = (
double**)calloc(bufferSize,
sizeof(
double*));
133 idx[run1] = arg.
idx[run1];
149 cresult = (
double**)calloc(bufferSize,
sizeof(
double*));
150 d_cresult = (
double**)calloc(bufferSize,
sizeof(
double*));
205 bufferSize += number;
206 result = (
double**)realloc(
result ,bufferSize*
sizeof(
double*));
211 for( run1 = oldSize; run1 <
bufferSize; run1++ ){
385 double *f,
double *df ){
400 bufferSize += number;
401 result = (
double**)realloc(
result ,bufferSize*
sizeof(
double*));
406 for( run1 = oldSize; run1 <
bufferSize; run1++ ){
421 seed[idx[run1]] =
d_cresult[number][run1];
457 double *df,
double *ddf ){
484 seed[
idx[run1]] = d_cresult2[run1];
485 dseed[idx[run1]] = dd_cresult[run1];
489 delete[] d_cresult2 ;
491 delete[] dd_cresult ;
498 double *df,
double *ddf ){
506 return stream <<
"C functions can not be printed";
virtual returnValue evaluate(int number, double *x, double *result)
virtual returnValue AD_forward2(int number, double *seed1, double *seed2, double *df, double *ddf)=0
virtual BooleanType isSymbolic() const
virtual BooleanType isVariable(VariableType &varType, int &component) const
virtual std::ostream & print(std::ostream &stream) const
Abstract base class for all scalar-valued symbolic operators.
virtual returnValue AD_backward(int dim, VariableType *varType, int *component, Operator *seed, Operator **df, int &nNewIS, TreeProjection ***newIS)
virtual BooleanType isDependingOn(VariableType var) const =0
Allows to pass back messages to the calling function.
virtual returnValue loadIndices(SymbolicIndexList *indexList)=0
virtual returnValue enumerateVariables(SymbolicIndexList *indexList)
virtual returnValue AD_forward2(int number, double *seed1, double *seed2, double *df, double *ddf)
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
virtual returnValue clearBuffer()
virtual MonotonicityType getMonotonicity()
BooleanType determineCExpressionIndices(uint dimension, uint ID, int *idx)
#define CLOSE_NAMESPACE_ACADO
Manages the indices of SymbolicVariables.
virtual returnValue AD_symmetric(int dim, VariableType *varType, int *component, Operator *l, Operator **S, int dimS, Operator **dfS, Operator **ldf, Operator **H, int &nNewLIS, TreeProjection ***newLIS, int &nNewSIS, TreeProjection ***newSIS, int &nNewHIS, TreeProjection ***newHIS)
Base class for all variables within the symbolic expressions family.
virtual Operator * AD_forward(int dim, VariableType *varType, int *component, Operator **seed, int &nNewIS, TreeProjection ***newIS)=0
virtual returnValue enumerateVariables(SymbolicIndexList *indexList)=0
virtual BooleanType isDependingOn(VariableType var) const
virtual Operator * clone() const
virtual returnValue evaluate(double *x, double *result)
virtual uint getDim() const
virtual Operator * substitute(int index, const Operator *sub)
virtual OperatorName getName()
The class COperator is an auxiliary class to use C-Functions within a function evaluation tree...
virtual returnValue evaluate(int number, double *x, double *result)=0
Abstract base class for all scalar-valued symbolic operators.
virtual CurvatureType getCurvature()
virtual Operator * differentiate(int index)
Implements the tree-projection operator within the family of SymbolicOperators.
void copy(const COperator &arg)
#define BEGIN_NAMESPACE_ACADO
COperator & operator=(const COperator &arg)
Abstract base class for templated evaluation of operators.
virtual returnValue AD_forward2(int number, double *seed1, double *seed2, double *df, double *ddf)
virtual returnValue clearBuffer()
virtual returnValue loadIndices(SymbolicIndexList *indexList)
virtual BooleanType isLinearIn(int dim, VariableType *varType, int *component, BooleanType *implicit_dep)
virtual Operator * AD_forward(int dim, VariableType *varType, int *component, Operator **seed, int &nNewIS, TreeProjection ***newIS)
virtual BooleanType isPolynomialIn(int dim, VariableType *varType, int *component, BooleanType *implicit_dep)
virtual BooleanType isRationalIn(int dim, VariableType *varType, int *component, BooleanType *implicit_dep)
virtual returnValue AD_backward2(int number, double seed1, double seed2, double *df, double *ddf)
virtual returnValue AD_forward(double *x, double *seed, double *f, double *df)
virtual NeutralElement isOneOrZero() const
#define ACADOERROR(retval)
virtual returnValue setMonotonicity(MonotonicityType monotonicity_)
virtual returnValue setCurvature(CurvatureType curvature_)