63 else if (fabs(1.0 -
value) < 10.0 *
EPS)
244 double *f,
double *df ){
268 double *df,
double *ddf ){
278 double *df,
double *ddf ){
287 return stream <<
"(real_t)(" <<
value <<
")";
virtual BooleanType isSymbolic() const
virtual returnValue AD_backward(int dim, VariableType *varType, int *component, Operator *seed, Operator **df, int &nNewIS, TreeProjection ***newIS)
virtual returnValue loadIndices(SymbolicIndexList *indexList)
virtual returnValue setMonotonicity(MonotonicityType monotonicity_)
Abstract base class for all scalar-valued symbolic operators.
virtual BooleanType isDependingOn(VariableType var) const
DoubleConstant & operator=(const DoubleConstant &arg)
virtual NeutralElement isOneOrZero() const
BEGIN_NAMESPACE_ACADO const double EPS
virtual double getValue() const
Allows to pass back messages to the calling function.
virtual BooleanType isLinearIn(int dim, VariableType *varType, int *component, BooleanType *implicit_dep)
virtual BooleanType isRationalIn(int dim, VariableType *varType, int *component, BooleanType *implicit_dep)
virtual Operator * differentiate(int index)
virtual returnValue clearBuffer()
#define CLOSE_NAMESPACE_ACADO
Manages the indices of SymbolicVariables.
virtual void set(double &arg)=0
virtual returnValue evaluate(int number, double *x, double *result)
virtual returnValue AD_forward2(int number, double *seed1, double *seed2, double *df, double *ddf)
virtual returnValue AD_backward2(int number, double seed1, double seed2, double *df, double *ddf)
virtual BooleanType isPolynomialIn(int dim, VariableType *varType, int *component, BooleanType *implicit_dep)
virtual BooleanType isVariable(VariableType &varType, int &component) 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 Operator * clone() const
virtual returnValue setCurvature(CurvatureType curvature_)
virtual std::ostream & print(std::ostream &stream) const
virtual OperatorName getName()
Abstract base class for all scalar-valued symbolic operators.
virtual Operator * AD_forward(int dim, VariableType *varType, int *component, Operator **seed, int &nNewIS, TreeProjection ***newIS)
NeutralElement neutralElement
Implements the tree-projection operator within the family of SymbolicOperators.
#define BEGIN_NAMESPACE_ACADO
Abstract base class for templated evaluation of operators.
virtual Operator * substitute(int index, const Operator *sub)
virtual MonotonicityType getMonotonicity()
Implements a scalar constant within the symbolic operators family.
virtual CurvatureType getCurvature()
virtual returnValue enumerateVariables(SymbolicIndexList *indexList)