172 return ADsymCommon2(
argument1,
argument2,dx,dy,dxx,dxy,dyy, dim, varType, component, l, S, dimS, dfS,
173 ldf, H, nNewLIS, newLIS, nNewSIS, newSIS, nNewHIS, newHIS );
321 double *f,
double *df ){
365 double *df,
double *ddf ){
367 double ddargument1_result;
368 double ddargument2_result;
369 double dargument_result1;
370 double dargument_result2;
373 &dargument_result1, &ddargument1_result);
375 &dargument_result2, &ddargument2_result);
377 df[0] = dargument_result1 + dargument_result2 ;
378 ddf[0] = ddargument1_result + ddargument2_result ;
385 double *df,
double *ddf ){
virtual returnValue AD_forward2(int number, double *seed1, double *seed2, double *df, double *ddf)
virtual returnValue AD_forward2(int number, double *seed1, double *seed2, double *df, double *ddf)=0
virtual MonotonicityType getMonotonicity()=0
Abstract base class for all scalar-valued binary operators within the symbolic operators family...
Abstract base class for all scalar-valued symbolic operators.
BooleanType acadoIsEqual(double x, double y, double TOL)
virtual CurvatureType getCurvature()
virtual NeutralElement isOneOrZero() const =0
double * argument1_result
virtual Operator * differentiate(int index)=0
virtual BooleanType isRationalIn(int dim, VariableType *varType, int *component, BooleanType *implicit_dep)
Allows to pass back messages to the calling function.
virtual Operator * clone() const =0
virtual Operator * substitute(int index, const Operator *sub)=0
virtual double getValue() const
virtual returnValue AD_backward2(int number, double seed1, double seed2, double *df, double *ddf)
#define CLOSE_NAMESPACE_ACADO
double * dargument2_result
virtual Operator * AD_forward(int dim, VariableType *varType, int *component, Operator **seed, int &nNewIS, TreeProjection ***newIS)=0
returnValue ADsymCommon2(Operator *a, Operator *b, TreeProjection &dx, TreeProjection &dy, TreeProjection &dxx, TreeProjection &dxy, TreeProjection &dyy, 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)
virtual std::ostream & print(std::ostream &stream) const
virtual returnValue AD_backward2(int number, double seed1, double seed2, double *df, double *ddf)=0
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)
MonotonicityType monotonicity
virtual returnValue evaluate(int number, double *x, double *result)
virtual BooleanType isPolynomialIn(int dim, VariableType *varType, int *component, BooleanType *implicit_dep)
double * argument2_result
virtual Operator * differentiate(int index)
virtual returnValue AD_backward(int dim, VariableType *varType, int *component, Operator *seed, Operator **df, int &nNewIS, TreeProjection ***newIS)=0
virtual BooleanType isLinearIn(int dim, VariableType *varType, int *component, BooleanType *implicit_dep)
double * dargument1_result
Implements the scalar addition operator within the symbolic expressions family.
virtual Operator * myAdd(Operator *a, Operator *b)
virtual BooleanType isLinearIn(int dim, VariableType *varType, int *component, BooleanType *implicit_dep)=0
virtual returnValue evaluate(int number, double *x, double *result)=0
virtual OperatorName getName()
virtual BooleanType isPolynomialIn(int dim, VariableType *varType, int *component, BooleanType *implicit_dep)=0
virtual Operator * AD_forward(int dim, VariableType *varType, int *component, Operator **seed, int &nNewIS, TreeProjection ***newIS)
BooleanType acadoIsFinite(double x, double TOL)
virtual returnValue AD_backward(int dim, VariableType *varType, int *component, Operator *seed, Operator **df, int &nNewIS, TreeProjection ***newIS)
virtual Operator * substitute(int index, const Operator *sub)
Implements the tree-projection operator within the family of SymbolicOperators.
virtual Operator * clone() const
BinaryOperator & operator=(const BinaryOperator &arg)
#define BEGIN_NAMESPACE_ACADO
Abstract base class for templated evaluation of operators.
virtual CurvatureType getCurvature()=0
virtual BooleanType isRationalIn(int dim, VariableType *varType, int *component, BooleanType *implicit_dep)=0
virtual TreeProjection * clone() const
virtual void addition(Operator &arg1, Operator &arg2)=0
Addition & operator=(const Addition &arg)
virtual MonotonicityType getMonotonicity()
Implements a scalar constant within the symbolic operators family.
virtual double getValue() const