170 return ADsymCommon2(
argument1,
argument2,dx,dy,dxx,dxy,dyy, dim, varType, component, l, S, dimS, dfS,
171 ldf, H, nNewLIS, newLIS, nNewSIS, newSIS, nNewHIS, newHIS );
324 double *f,
double *df ){
367 double *df,
double *ddf ){
369 double ddargument1_result;
370 double ddargument2_result;
371 double dargument_result1 ;
372 double dargument_result2 ;
375 &dargument_result1, &ddargument1_result);
377 &dargument_result2, &ddargument2_result);
379 df[0] = dargument_result1 - dargument_result2 ;
380 ddf[0] = ddargument1_result - ddargument2_result ;
387 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 NeutralElement isOneOrZero() const =0
double * argument1_result
virtual returnValue AD_backward(int dim, VariableType *varType, int *component, Operator *seed, Operator **df, int &nNewIS, TreeProjection ***newIS)
virtual Operator * differentiate(int index)=0
Allows to pass back messages to the calling function.
virtual Operator * substitute(int index, const Operator *sub)=0
virtual void subtraction(Operator &arg1, Operator &arg2)=0
virtual double getValue() const
virtual Operator * clone() const
virtual BooleanType isPolynomialIn(int dim, VariableType *varType, int *component, BooleanType *implicit_dep)
#define CLOSE_NAMESPACE_ACADO
double * dargument2_result
virtual Operator * mySubtract(Operator *a, Operator *b)
virtual BooleanType isRationalIn(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)=0
virtual double getValue() const
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)
virtual returnValue AD_forward2(int number, double *seed1, double *seed2, double *df, double *ddf)
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 returnValue AD_backward2(int number, double seed1, double seed2, double *df, double *ddf)
virtual std::ostream & print(std::ostream &stream) const
virtual returnValue AD_backward2(int number, double seed1, double seed2, double *df, double *ddf)=0
virtual Operator * substitute(int index, const Operator *sub)
MonotonicityType monotonicity
virtual CurvatureType getCurvature()
double * argument2_result
virtual returnValue AD_backward(int dim, VariableType *varType, int *component, Operator *seed, Operator **df, int &nNewIS, TreeProjection ***newIS)=0
double * dargument1_result
virtual BooleanType isLinearIn(int dim, VariableType *varType, int *component, BooleanType *implicit_dep)
virtual OperatorName getName()
virtual Operator * AD_forward(int dim, VariableType *varType, int *component, Operator **seed, int &nNewIS, TreeProjection ***newIS)
Implements the scalar subtraction operator within the symbolic operators family.
virtual BooleanType isLinearIn(int dim, VariableType *varType, int *component, BooleanType *implicit_dep)=0
virtual returnValue evaluate(int number, double *x, double *result)=0
virtual BooleanType isPolynomialIn(int dim, VariableType *varType, int *component, BooleanType *implicit_dep)=0
Subtraction & operator=(const Subtraction &arg)
Implements the tree-projection operator within the family of SymbolicOperators.
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 returnValue evaluate(int number, double *x, double *result)
virtual Operator * differentiate(int index)
virtual TreeProjection * clone() const
virtual MonotonicityType getMonotonicity()
Implements a scalar constant within the symbolic operators family.