236 return ADsymCommon2(
argument1,
argument2,dx,dy,dxx,dxy,dyy, dim, varType, component, l, S, dimS, dfS,
237 ldf, H, nNewLIS, newLIS, nNewSIS, newSIS, nNewHIS, newHIS );
321 if( res >= 0.0 )
return m1;
349 if( res >= 0.0 )
return c1;
378 double *f,
double *df ){
427 double *df,
double *ddf ){
429 double ddargument1_result;
430 double ddargument2_result;
431 double dargument_result1;
432 double dargument_result2;
435 &dargument_result1, &ddargument1_result);
437 &dargument_result2, &ddargument2_result);
440 const double ggg = dargument_result2/gg;
442 df[0] = dargument_result1/argument2_result[number]
445 ddf[0] = ddargument1_result/argument2_result[number]
457 double *df,
double *ddf ){
463 seed2/argument2_result[number] -
469 +2.0*ggg/argument2_result[number]
virtual returnValue AD_forward2(int number, double *seed1, double *seed2, double *df, double *ddf)=0
virtual MonotonicityType getMonotonicity()=0
TreeProjection * derivative1
virtual returnValue AD_backward2(int number, double seed1, double seed2, double *df, double *ddf)
Abstract base class for all scalar-valued binary operators within the symbolic operators family...
Abstract base class for all scalar-valued symbolic operators.
virtual BooleanType isDependingOn(VariableType var) const =0
BooleanType acadoIsEqual(double x, double y, double TOL)
virtual NeutralElement isOneOrZero() const =0
virtual Operator * clone() const
double * argument1_result
virtual returnValue evaluate(int number, double *x, double *result)
virtual Operator * differentiate(int index)=0
Allows to pass back messages to the calling function.
virtual Operator * clone() const =0
virtual BooleanType isRationalIn(int dim, VariableType *varType, int *component, BooleanType *implicit_dep)
virtual Operator * substitute(int index, const Operator *sub)=0
virtual std::ostream & print(std::ostream &stream) const
virtual double getValue() const
virtual returnValue AD_backward(int dim, VariableType *varType, int *component, Operator *seed, Operator **df, int &nNewIS, TreeProjection ***newIS)
#define CLOSE_NAMESPACE_ACADO
virtual void quotient(Operator &arg1, Operator &arg2)=0
virtual BooleanType isPolynomialIn(int dim, VariableType *varType, int *component, BooleanType *implicit_dep)
double * dargument2_result
virtual Operator * mySubtract(Operator *a, Operator *b)
#define ACADOFATAL(retval)
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 returnValue initDerivative()
virtual returnValue AD_backward2(int number, double seed1, double seed2, double *df, double *ddf)=0
virtual Operator * AD_forward(int dim, VariableType *varType, int *component, Operator **seed, int &nNewIS, TreeProjection ***newIS)
MonotonicityType monotonicity
TreeProjection * derivative0
virtual returnValue AD_forward2(int number, double *seed1, double *seed2, double *df, double *ddf)
virtual Operator * myProd(Operator *a, Operator *b)
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 Operator * substitute(int index, const Operator *sub)
virtual returnValue initDerivative()
TreeProjection * derivative2
virtual MonotonicityType getMonotonicity()
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()
BooleanType acadoIsZero(double x, double TOL)
virtual BooleanType isPolynomialIn(int dim, VariableType *varType, int *component, BooleanType *implicit_dep)=0
Implements the scalar quotient operator within the symbolic operators family.
Implements the tree-projection operator within the family of SymbolicOperators.
virtual TreeProjection * convert2TreeProjection(Operator *a) const
BinaryOperator & operator=(const BinaryOperator &arg)
#define BEGIN_NAMESPACE_ACADO
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)
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 double getValue() const
virtual TreeProjection * clone() const
virtual CurvatureType getCurvature()
Quotient & operator=(const Quotient &arg)
Implements a scalar constant within the symbolic operators family.
virtual BooleanType isLinearIn(int dim, VariableType *varType, int *component, BooleanType *implicit_dep)
virtual Operator * differentiate(int index)
Implements the scalar product operator within the symbolic operators family.