ACADO Toolkit
1.2.0beta
Toolkit for Automatic Control and Dynamic Optimization
|
Implements the scalar sine operator within the symbolic operators family. More...
#include <sin.hpp>
Public Member Functions | |
Sin () | |
Default constructor. | |
Sin (Operator *_argument) | |
Default constructor. | |
Sin (const Sin &arg) | |
Copy constructor (deep copy). | |
~Sin () | |
Default destructor. | |
Sin & | operator= (const Sin &arg) |
Assignment Operator (deep copy). | |
virtual returnValue | evaluate (EvaluationBase *x) |
Evaluates the expression (templated version) | |
virtual Operator * | differentiate (int index) |
Returns the derivative of the expression with respect to the variable var(index). | |
virtual Operator * | substitute (int index, const Operator *sub) |
Substitutes var(index) with the expression sub. | |
virtual Operator * | clone () const |
Provides a deep copy of the expression. | |
virtual returnValue | evaluate (int number, double *x, double *result) |
Evaluates the expression and stores the intermediate results in a buffer (needed for automatic differentiation in backward mode) . | |
virtual Operator * | AD_forward (int dim, VariableType *varType, int *component, Operator **seed, int &nNewIS, TreeProjection ***newIS) |
Automatic Differentiation in forward mode on the symbolic level. | |
virtual returnValue | AD_forward (int number, double *seed, double *df) |
Automatic Differentiation in forward mode. | |
virtual returnValue | AD_forward (int number, double *x, double *seed, double *f, double *df) |
Automatic Differentiation in forward mode. | |
virtual returnValue | AD_backward (int dim, VariableType *varType, int *component, Operator *seed, Operator **df) |
Automatic Differentiation in backward mode on the symbolic level. | |
virtual returnValue | AD_backward (int number, double seed, double *df) |
Automatic Differentiation in backward mode based on buffered values . | |
virtual NeutralElement | isOneOrZero () const |
Checks whether the expression is zero or one . | |
virtual BooleanType | isDependingOn (VariableType var) const |
Asks the expression whether it is depending on a certian type of variable. | |
virtual BooleanType | isDependingOn (int dim, VariableType *varType, int *component, BooleanType *implicit_dep) |
Checks whether the expression is depending on a variable . | |
virtual BooleanType | isLinearIn (int dim, VariableType *varType, int *component, BooleanType *implicit_dep) |
Checks whether the expression is linear in (or not depending on) a variable . | |
virtual BooleanType | isPolynomialIn (int dim, VariableType *varType, int *component, BooleanType *implicit_dep) |
Checks whether the expression is polynomial in the specified variables . | |
virtual BooleanType | isRationalIn (int dim, VariableType *varType, int *component, BooleanType *implicit_dep) |
Checks whether the expression is rational in the specified variables . | |
virtual MonotonicityType | getMonotonicity () |
Returns the monotonicity of the expression. | |
virtual CurvatureType | getCurvature () |
Returns the curvature of the expression . | |
virtual returnValue | setMonotonicity (MonotonicityType monotonicity_) |
Overwrites the monotonicity of the expression. | |
virtual returnValue | setCurvature (CurvatureType curvature_) |
Overwrites the curvature of the expression. | |
virtual returnValue | AD_forward2 (int number, double *seed1, double *seed2, double *df, double *ddf) |
Automatic Differentiation in forward mode for 2nd derivatives. | |
virtual returnValue | AD_backward2 (int number, double seed1, double seed2, double *df, double *ddf) |
Automatic Differentiation in backward mode for 2nd order derivatives based on buffered values. | |
virtual Stream & | print (Stream &stream) const |
Prints the expression into a stream. | |
virtual returnValue | clearBuffer () |
Clears the buffer and resets the buffer size to 1. | |
virtual returnValue | enumerateVariables (SymbolicIndexList *indexList) |
Enumerates all variables based on a common IndexList. | |
virtual OperatorName | getName () |
Asks the expression for its name. | |
virtual BooleanType | isVariable (VariableType &varType, int &component) const |
Asks the expression whether it is a variable. | |
virtual returnValue | loadIndices (SymbolicIndexList *indexList) |
The function loadIndices passes an IndexList through the whole expression tree. | |
virtual BooleanType | isSymbolic () const |
Asks whether all elements are purely symbolic. | |
TreeProjection & | operator+= (const double &arg) |
TreeProjection & | operator+= (const Vector &arg) |
TreeProjection & | operator+= (const Matrix &arg) |
TreeProjection & | operator+= (const Expression &arg) |
TreeProjection & | operator-= (const double &arg) |
TreeProjection & | operator-= (const Vector &arg) |
TreeProjection & | operator-= (const Matrix &arg) |
TreeProjection & | operator-= (const Expression &arg) |
TreeProjection & | operator*= (const double &arg) |
TreeProjection & | operator*= (const Vector &arg) |
TreeProjection & | operator*= (const Matrix &arg) |
TreeProjection & | operator*= (const Expression &arg) |
TreeProjection & | operator/= (const double &arg) |
TreeProjection & | operator/= (const Expression &arg) |
Expression | operator+ (const double &arg) const |
Expression | operator+ (const Vector &arg) const |
Expression | operator+ (const Matrix &arg) const |
Expression | operator+ (const Operator &arg) const |
Expression | operator+ (const Expression &arg) const |
Expression | operator- (const double &arg) const |
Expression | operator- (const Vector &arg) const |
Expression | operator- (const Matrix &arg) const |
Expression | operator- (const Operator &arg) const |
Expression | operator- (const Expression &arg) const |
Expression | operator- () const |
Expression | operator* (const double &arg) const |
Expression | operator* (const Vector &arg) const |
Expression | operator* (const Matrix &arg) const |
Expression | operator* (const Operator &arg) const |
Expression | operator* (const Expression &arg) const |
Expression | operator/ (const double &arg) const |
Expression | operator/ (const Operator &arg) const |
Expression | operator/ (const Expression &arg) const |
ConstraintComponent | operator<= (const double &ub) const |
ConstraintComponent | operator<= (const Vector &ub) const |
ConstraintComponent | operator<= (const VariablesGrid &ub) const |
ConstraintComponent | operator>= (const double &lb) const |
ConstraintComponent | operator>= (const Vector &lb) const |
ConstraintComponent | operator>= (const VariablesGrid &lb) const |
ConstraintComponent | operator== (const double &b) const |
ConstraintComponent | operator== (const Vector &b) const |
ConstraintComponent | operator== (const VariablesGrid &b) const |
virtual BooleanType | isSmooth () const |
Checks whether the expression is smooth in time . | |
Stream | operator<< (Stream &stream) |
Prints the expression into a stream ("flush" version). | |
Stream & | operator<< (Stream &stream) const |
Prints the expression into a stream ("flush" version). | |
virtual TreeProjection * | cloneTreeProjection () const |
Provides a deep copy of a tree projection. | |
virtual int | getGlobalIndex () const |
Asks the variable for its relative index. | |
virtual double | getValue () const |
Return the value of the constant. | |
virtual Operator * | passArgument () const |
Returns the argument or NULL if no intermediate argument available. | |
Public Attributes | |
int | nCount |
Protected Member Functions | |
virtual Operator * | ADforwardProtected (int dim, VariableType *varType, int *component, Operator **seed, int &nNewIS, TreeProjection ***newIS) |
Automatic Differentiation in forward mode on the symbolic level. | |
virtual returnValue | ADbackwardProtected (int dim, VariableType *varType, int *component, Operator *seed, Operator **df) |
Automatic Differentiation in backward mode on the symbolic level. | |
virtual returnValue | setVariableExportName (const VariableType &_type, const Stream *_name) |
Sets the name of the variable that is used for code export. | |
Protected Attributes | |
Operator * | argument |
The argument. | |
Operator * | dargument |
The derivative. | |
double * | argument_result |
The results for the argument. | |
double * | dargument_result |
The results for the first derivative. | |
int | bufferSize |
The size of the buffer. | |
CurvatureType | curvature |
MonotonicityType | monotonicity |
OperatorName | operatorName |
String | cName |
double(* | fcn )(double) |
double(* | dfcn )(double) |
double(* | ddfcn )(double) |
Friends | |
Expression | operator+ (const double &arg1, const Operator &arg2) |
Expression | operator+ (const Vector &arg1, const Operator &arg2) |
Expression | operator+ (const Matrix &arg1, const Operator &arg2) |
Expression | operator- (const double &arg1, const Operator &arg2) |
Expression | operator- (const Vector &arg1, const Operator &arg2) |
Expression | operator- (const Matrix &arg1, const Operator &arg2) |
Expression | operator* (const double &arg1, const Operator &arg2) |
Expression | operator* (const Vector &arg1, const Operator &arg2) |
Expression | operator* (const Matrix &arg1, const Operator &arg2) |
Expression | operator/ (const double &arg1, const Operator &arg2) |
Expression | operator/ (const Vector &arg1, const Operator &arg2) |
Expression | operator/ (const Matrix &arg1, const Operator &arg2) |
ConstraintComponent | operator<= (double lb, const Operator &arg) |
ConstraintComponent | operator<= (Vector lb, const Operator &arg) |
ConstraintComponent | operator<= (VariablesGrid lb, const Operator &arg) |
ConstraintComponent | operator>= (double ub, const Operator &arg) |
ConstraintComponent | operator>= (Vector ub, const Operator &arg) |
ConstraintComponent | operator>= (VariablesGrid ub, const Operator &arg) |
ConstraintComponent | operator== (double b, const Operator &arg) |
ConstraintComponent | operator== (Vector b, const Operator &arg) |
ConstraintComponent | operator== (VariablesGrid b, const Operator &arg) |
Stream & | operator<< (Stream &stream, const Operator &arg) |
Prints the expression into a stream ("flush" version). | |
returnValue | operator<< (FILE *file, const Operator &arg) |
Prints the expression into a stream ("flush" version). |
The class Sin implements the scalar sine operator within the symbolic operators family.
References UnaryOperator::cName, cos(), UnaryOperator::ddfcn, ddSin(), UnaryOperator::dfcn, UnaryOperator::fcn, ON_SIN, UnaryOperator::operatorName, and sin().
Referenced by clone(), and substitute().
References UnaryOperator::cName, cos(), UnaryOperator::ddfcn, ddSin(), UnaryOperator::dfcn, UnaryOperator::fcn, ON_SIN, UnaryOperator::operatorName, and sin().
References UnaryOperator::cName, cos(), UnaryOperator::ddfcn, ddSin(), UnaryOperator::dfcn, UnaryOperator::fcn, ON_SIN, UnaryOperator::operatorName, and sin().
Sin::~Sin | ( | ) |
returnValue UnaryOperator::AD_backward | ( | int | dim, |
VariableType * | varType, | ||
int * | component, | ||
Operator * | seed, | ||
Operator ** | df | ||
) | [virtual, inherited] |
This function generates an expression for a
backward derivative
dim | number of directions |
varType | the variable types |
component | and their components |
seed | the backward seed |
df | the result |
Implements SmoothOperator.
References UnaryOperator::ADbackwardProtected().
returnValue UnaryOperator::AD_backward | ( | int | number, |
double | seed, | ||
double * | df | ||
) | [virtual, inherited] |
number | the buffer position |
seed | the seed |
df | the derivative |
Implements SmoothOperator.
References Operator::AD_backward(), UnaryOperator::argument, UnaryOperator::argument_result, and UnaryOperator::dfcn.
returnValue UnaryOperator::AD_backward2 | ( | int | number, |
double | seed1, | ||
double | seed2, | ||
double * | df, | ||
double * | ddf | ||
) | [virtual, inherited] |
number | the buffer position |
seed1 | the seed1 |
seed2 | the seed2 |
df | the 1st derivative |
ddf | the 2nd derivative |
Implements SmoothOperator.
References Operator::AD_backward2(), UnaryOperator::argument, UnaryOperator::argument_result, UnaryOperator::dargument_result, UnaryOperator::ddfcn, and SUCCESSFUL_RETURN.
Operator * UnaryOperator::AD_forward | ( | int | dim, |
VariableType * | varType, | ||
int * | component, | ||
Operator ** | seed, | ||
int & | nNewIS, | ||
TreeProjection *** | newIS | ||
) | [virtual, inherited] |
This function generates an expression for a
forward derivative
dim | dimension of the seed |
varType | the variable types |
component | and their components |
seed | the forward seed |
nNewIS | the number of new IS |
newIS | the new IS-pointer |
Implements SmoothOperator.
References UnaryOperator::ADforwardProtected().
returnValue UnaryOperator::AD_forward | ( | int | number, |
double * | seed, | ||
double * | df | ||
) | [virtual, inherited] |
This function uses the intermediate
results from a buffer
number | storage position |
seed | the seed |
df | the derivative |
Implements SmoothOperator.
References Operator::AD_forward(), UnaryOperator::argument, UnaryOperator::argument_result, UnaryOperator::dargument_result, and SUCCESSFUL_RETURN.
returnValue UnaryOperator::AD_forward | ( | int | number, |
double * | x, | ||
double * | seed, | ||
double * | f, | ||
double * | df | ||
) | [virtual, inherited] |
This function stores the intermediate
results in a buffer (needed for 2nd order automatic
differentiation in backward mode)
number | storage position |
x | The evaluation point x |
seed | the seed |
f | the value of the expression at x |
df | the derivative of the expression |
Implements SmoothOperator.
References Operator::AD_forward(), UnaryOperator::argument, UnaryOperator::argument_result, UnaryOperator::bufferSize, UnaryOperator::dargument_result, and SUCCESSFUL_RETURN.
returnValue UnaryOperator::AD_forward2 | ( | int | number, |
double * | seed1, | ||
double * | seed2, | ||
double * | df, | ||
double * | ddf | ||
) | [virtual, inherited] |
This function uses intermediate
results from a buffer.
number | the buffer position |
seed1 | the seed |
seed2 | the seed for the first derivative |
df | the derivative |
ddf | the 2nd derivative |
Implements SmoothOperator.
References Operator::AD_forward2(), UnaryOperator::argument, UnaryOperator::argument_result, UnaryOperator::dargument_result, and SUCCESSFUL_RETURN.
returnValue Sin::ADbackwardProtected | ( | int | dim, |
VariableType * | varType, | ||
int * | component, | ||
Operator * | seed, | ||
Operator ** | df | ||
) | [protected, virtual] |
This function generates an expression for a
backward derivative
dim | number of directions |
varType | the variable types |
component | and their components |
seed | the backward seed |
df | the result |
Implements UnaryOperator.
References Operator::AD_backward(), UnaryOperator::argument, Operator::clone(), Operator::isOneOrZero(), NE_ONE, NE_ZERO, and SUCCESSFUL_RETURN.
Operator * Sin::ADforwardProtected | ( | int | dim, |
VariableType * | varType, | ||
int * | component, | ||
Operator ** | seed, | ||
int & | nNewIS, | ||
TreeProjection *** | newIS | ||
) | [protected, virtual] |
This function generates an expression for a
forward derivative
dim | dimension of the seed |
varType | the variable types |
component | and their components |
seed | the forward seed |
nNewIS | the number of new IS |
newIS | the new IS-pointer |
Implements UnaryOperator.
References Operator::AD_forward(), UnaryOperator::argument, Operator::clone(), UnaryOperator::dargument, Operator::isOneOrZero(), NE_ONE, and NE_ZERO.
returnValue UnaryOperator::clearBuffer | ( | ) | [virtual, inherited] |
Implements SmoothOperator.
References UnaryOperator::argument_result, UnaryOperator::bufferSize, UnaryOperator::dargument_result, and SUCCESSFUL_RETURN.
Operator * Sin::clone | ( | ) | const [virtual] |
TreeProjection * SmoothOperator::cloneTreeProjection | ( | ) | const [virtual, inherited] |
Reimplemented from Operator.
Reimplemented in TreeProjection.
References ACADOERROR, ASSERT, and RET_UNKNOWN_BUG.
Operator * Sin::differentiate | ( | int | index | ) | [virtual] |
index | diff. index |
Implements UnaryOperator.
References UnaryOperator::argument, Operator::clone(), UnaryOperator::dargument, Operator::differentiate(), Operator::isOneOrZero(), NE_ONE, and NE_ZERO.
returnValue UnaryOperator::enumerateVariables | ( | SymbolicIndexList * | indexList | ) | [virtual, inherited] |
Implements SmoothOperator.
References UnaryOperator::argument, and Operator::enumerateVariables().
returnValue Sin::evaluate | ( | EvaluationBase * | x | ) | [virtual] |
Implements UnaryOperator.
References UnaryOperator::argument, EvaluationBase::Sin(), and SUCCESSFUL_RETURN.
returnValue UnaryOperator::evaluate | ( | int | number, |
double * | x, | ||
double * | result | ||
) | [virtual, inherited] |
number | storage position |
x | the input variable x |
result | the result |
Implements SmoothOperator.
References UnaryOperator::argument, UnaryOperator::argument_result, UnaryOperator::bufferSize, UnaryOperator::dargument_result, Operator::evaluate(), and SUCCESSFUL_RETURN.
CurvatureType UnaryOperator::getCurvature | ( | ) | [virtual, inherited] |
Implements SmoothOperator.
Reimplemented in Exp, and Logarithm.
References UnaryOperator::argument, CT_CONSTANT, CT_NEITHER_CONVEX_NOR_CONCAVE, CT_UNKNOWN, UnaryOperator::curvature, and Operator::getCurvature().
int SmoothOperator::getGlobalIndex | ( | ) | const [virtual, inherited] |
Asks the variable for its global index.
Reimplemented from Operator.
Reimplemented in Projection.
References ACADOERROR, and RET_UNKNOWN_BUG.
MonotonicityType UnaryOperator::getMonotonicity | ( | ) | [virtual, inherited] |
Implements SmoothOperator.
References UnaryOperator::argument, Operator::getMonotonicity(), UnaryOperator::monotonicity, MT_CONSTANT, MT_NONMONOTONIC, and MT_UNKNOWN.
OperatorName UnaryOperator::getName | ( | ) | [virtual, inherited] |
Implements SmoothOperator.
References UnaryOperator::operatorName.
double SmoothOperator::getValue | ( | ) | const [virtual, inherited] |
Reimplemented from Operator.
Reimplemented in DoubleConstant, Addition, Product, Quotient, and Subtraction.
References INFTY.
BooleanType UnaryOperator::isDependingOn | ( | VariableType | var | ) | const [virtual, inherited] |
Implements SmoothOperator.
References UnaryOperator::argument, and Operator::isDependingOn().
BooleanType UnaryOperator::isDependingOn | ( | int | dim, |
VariableType * | varType, | ||
int * | component, | ||
BooleanType * | implicit_dep | ||
) | [virtual, inherited] |
dim | number of directions |
varType | the variable types |
component | and their components |
implicit_dep | implicit dependencies |
Implements SmoothOperator.
References UnaryOperator::argument, and Operator::isDependingOn().
BooleanType UnaryOperator::isLinearIn | ( | int | dim, |
VariableType * | varType, | ||
int * | component, | ||
BooleanType * | implicit_dep | ||
) | [virtual, inherited] |
dim | number of directions |
varType | the variable types |
component | and their components |
implicit_dep | implicit dependencies |
Implements SmoothOperator.
References UnaryOperator::argument, BT_FALSE, BT_TRUE, and Operator::isDependingOn().
NeutralElement UnaryOperator::isOneOrZero | ( | ) | const [virtual, inherited] |
Implements SmoothOperator.
References NE_NEITHER_ONE_NOR_ZERO.
BooleanType UnaryOperator::isPolynomialIn | ( | int | dim, |
VariableType * | varType, | ||
int * | component, | ||
BooleanType * | implicit_dep | ||
) | [virtual, inherited] |
dim | number of directions |
varType | the variable types |
component | and their components |
implicit_dep | implicit dependencies |
Implements SmoothOperator.
References UnaryOperator::argument, BT_FALSE, BT_TRUE, and Operator::isDependingOn().
BooleanType UnaryOperator::isRationalIn | ( | int | dim, |
VariableType * | varType, | ||
int * | component, | ||
BooleanType * | implicit_dep | ||
) | [virtual, inherited] |
dim | number of directions |
varType | the variable types |
component | and their components |
implicit_dep | implicit dependencies |
Implements SmoothOperator.
References UnaryOperator::argument, BT_FALSE, BT_TRUE, and Operator::isDependingOn().
BooleanType SmoothOperator::isSmooth | ( | ) | const [virtual, inherited] |
BooleanType UnaryOperator::isSymbolic | ( | ) | const [virtual, inherited] |
Implements SmoothOperator.
References UnaryOperator::argument, BT_FALSE, BT_TRUE, and Operator::isSymbolic().
BooleanType UnaryOperator::isVariable | ( | VariableType & | varType, |
int & | component | ||
) | const [virtual, inherited] |
returnValue UnaryOperator::loadIndices | ( | SymbolicIndexList * | indexList | ) | [virtual, inherited] |
Whenever a variable gets the
IndexList it tries to make an entry. However if a
variable recognices that it has already been added
before it will not be allowed to make a second entry.
Note that all variables, in paticular the intermediate
states, will keep in mind whether they were allowed
to make an entry or not. This guarantees that
intermediate states are never evaluated twice if they
occur at several knots of the tree.
THIS FUNCTION IS FOR INTERNAL USE ONLY.
PLEASE CALL THIS FUNTION AT MOST ONES FOR AN EXPRESSION
AS A KIND OF INIT ROUTINE.
Implements SmoothOperator.
References UnaryOperator::argument, and Operator::loadIndices().
Expression SmoothOperator::operator* | ( | const double & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator* | ( | const Vector & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator* | ( | const Matrix & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator* | ( | const Operator & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator* | ( | const Expression & | arg | ) | const [inherited] |
Reimplemented from Operator.
TreeProjection & SmoothOperator::operator*= | ( | const double & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
TreeProjection & SmoothOperator::operator*= | ( | const Vector & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
TreeProjection & SmoothOperator::operator*= | ( | const Matrix & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
TreeProjection & SmoothOperator::operator*= | ( | const Expression & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
Expression SmoothOperator::operator+ | ( | const double & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator+ | ( | const Vector & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator+ | ( | const Matrix & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator+ | ( | const Operator & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator+ | ( | const Expression & | arg | ) | const [inherited] |
Reimplemented from Operator.
TreeProjection & SmoothOperator::operator+= | ( | const double & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
TreeProjection & SmoothOperator::operator+= | ( | const Vector & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
TreeProjection & SmoothOperator::operator+= | ( | const Matrix & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
TreeProjection & SmoothOperator::operator+= | ( | const Expression & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
Expression SmoothOperator::operator- | ( | const double & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator- | ( | const Vector & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator- | ( | const Matrix & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator- | ( | const Operator & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator- | ( | const Expression & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator- | ( | ) | const [inherited] |
Reimplemented from Operator.
TreeProjection & SmoothOperator::operator-= | ( | const double & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
TreeProjection & SmoothOperator::operator-= | ( | const Vector & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
TreeProjection & SmoothOperator::operator-= | ( | const Matrix & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
TreeProjection & SmoothOperator::operator-= | ( | const Expression & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
Expression SmoothOperator::operator/ | ( | const double & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator/ | ( | const Operator & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator/ | ( | const Expression & | arg | ) | const [inherited] |
Reimplemented from Operator.
TreeProjection & SmoothOperator::operator/= | ( | const double & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
TreeProjection & SmoothOperator::operator/= | ( | const Expression & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
ConstraintComponent SmoothOperator::operator<= | ( | const double & | ub | ) | const [inherited] |
Reimplemented from Operator.
ConstraintComponent SmoothOperator::operator<= | ( | const Vector & | ub | ) | const [inherited] |
Reimplemented from Operator.
ConstraintComponent SmoothOperator::operator<= | ( | const VariablesGrid & | ub | ) | const [inherited] |
Reimplemented from Operator.
ConstraintComponent SmoothOperator::operator== | ( | const double & | b | ) | const [inherited] |
Reimplemented from Operator.
ConstraintComponent SmoothOperator::operator== | ( | const Vector & | b | ) | const [inherited] |
Reimplemented from Operator.
ConstraintComponent SmoothOperator::operator== | ( | const VariablesGrid & | b | ) | const [inherited] |
Reimplemented from Operator.
ConstraintComponent SmoothOperator::operator>= | ( | const double & | lb | ) | const [inherited] |
Reimplemented from Operator.
ConstraintComponent SmoothOperator::operator>= | ( | const Vector & | lb | ) | const [inherited] |
Reimplemented from Operator.
ConstraintComponent SmoothOperator::operator>= | ( | const VariablesGrid & | lb | ) | const [inherited] |
Reimplemented from Operator.
Operator * SmoothOperator::passArgument | ( | ) | const [virtual, inherited] |
Reimplemented from Operator.
Reimplemented in TreeProjection.
Stream & UnaryOperator::print | ( | Stream & | stream | ) | const [virtual, inherited] |
Implements SmoothOperator.
References UnaryOperator::argument, and UnaryOperator::cName.
returnValue UnaryOperator::setCurvature | ( | CurvatureType | curvature_ | ) | [virtual, inherited] |
(For the case that the curvature is explicitly known)
Implements SmoothOperator.
References UnaryOperator::curvature, and SUCCESSFUL_RETURN.
returnValue UnaryOperator::setMonotonicity | ( | MonotonicityType | monotonicity_ | ) | [virtual, inherited] |
(For the case that the monotonicity is explicitly known)
Implements SmoothOperator.
References UnaryOperator::monotonicity, and SUCCESSFUL_RETURN.
returnValue UnaryOperator::setVariableExportName | ( | const VariableType & | _type, |
const Stream * | _name | ||
) | [protected, virtual, inherited] |
Reimplemented from Operator.
References UnaryOperator::argument, and Operator::setVariableExportName().
Operator * Sin::substitute | ( | int | index, |
const Operator * | sub | ||
) | [virtual] |
index | subst. index |
sub | the substitution |
Implements UnaryOperator.
References UnaryOperator::argument, Sin(), and Operator::substitute().
Expression operator* | ( | const double & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator* | ( | const Vector & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator* | ( | const Matrix & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator+ | ( | const double & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator+ | ( | const Vector & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator+ | ( | const Matrix & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator- | ( | const double & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator- | ( | const Vector & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator- | ( | const Matrix & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator/ | ( | const double & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator/ | ( | const Vector & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator/ | ( | const Matrix & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
returnValue operator<< | ( | FILE * | file, |
const Operator & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator<= | ( | double | lb, |
const Operator & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator<= | ( | Vector | lb, |
const Operator & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator<= | ( | VariablesGrid | lb, |
const Operator & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator== | ( | double | b, |
const Operator & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator== | ( | Vector | b, |
const Operator & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator== | ( | VariablesGrid | b, |
const Operator & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator>= | ( | double | ub, |
const Operator & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator>= | ( | Vector | ub, |
const Operator & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator>= | ( | VariablesGrid | ub, |
const Operator & | arg | ||
) | [friend, inherited] |
Operator* UnaryOperator::argument [protected, inherited] |
Referenced by UnaryOperator::AD_backward(), UnaryOperator::AD_backward2(), UnaryOperator::AD_forward(), UnaryOperator::AD_forward2(), Asin::ADbackwardProtected(), Cos::ADbackwardProtected(), Acos::ADbackwardProtected(), ADbackwardProtected(), Atan::ADbackwardProtected(), Tan::ADbackwardProtected(), Exp::ADbackwardProtected(), Logarithm::ADbackwardProtected(), Acos::ADforwardProtected(), Cos::ADforwardProtected(), Asin::ADforwardProtected(), ADforwardProtected(), Atan::ADforwardProtected(), Tan::ADforwardProtected(), Exp::ADforwardProtected(), Logarithm::ADforwardProtected(), differentiate(), Cos::differentiate(), Acos::differentiate(), Asin::differentiate(), Tan::differentiate(), Exp::differentiate(), Logarithm::differentiate(), Atan::differentiate(), UnaryOperator::enumerateVariables(), Asin::evaluate(), Logarithm::evaluate(), Cos::evaluate(), evaluate(), Acos::evaluate(), Tan::evaluate(), Exp::evaluate(), Atan::evaluate(), UnaryOperator::evaluate(), Logarithm::getCurvature(), Exp::getCurvature(), UnaryOperator::getCurvature(), UnaryOperator::getMonotonicity(), UnaryOperator::isDependingOn(), UnaryOperator::isLinearIn(), UnaryOperator::isPolynomialIn(), UnaryOperator::isRationalIn(), UnaryOperator::isSymbolic(), UnaryOperator::loadIndices(), UnaryOperator::operator=(), UnaryOperator::print(), UnaryOperator::setVariableExportName(), Acos::substitute(), Cos::substitute(), Asin::substitute(), substitute(), Logarithm::substitute(), Atan::substitute(), Tan::substitute(), Exp::substitute(), UnaryOperator::UnaryOperator(), and UnaryOperator::~UnaryOperator().
double* UnaryOperator::argument_result [protected, inherited] |
int UnaryOperator::bufferSize [protected, inherited] |
String UnaryOperator::cName [protected, inherited] |
CurvatureType UnaryOperator::curvature [protected, inherited] |
Operator* UnaryOperator::dargument [protected, inherited] |
Referenced by Acos::ADforwardProtected(), Asin::ADforwardProtected(), Cos::ADforwardProtected(), Atan::ADforwardProtected(), ADforwardProtected(), Tan::ADforwardProtected(), Exp::ADforwardProtected(), Logarithm::ADforwardProtected(), Acos::differentiate(), differentiate(), Asin::differentiate(), Cos::differentiate(), Exp::differentiate(), Tan::differentiate(), Logarithm::differentiate(), Atan::differentiate(), UnaryOperator::operator=(), UnaryOperator::UnaryOperator(), and UnaryOperator::~UnaryOperator().
double* UnaryOperator::dargument_result [protected, inherited] |
double(* UnaryOperator::ddfcn)(double) [protected, inherited] |
double(* UnaryOperator::dfcn)(double) [protected, inherited] |
double(* UnaryOperator::fcn)(double) [protected, inherited] |
Referenced by Acos::Acos(), Asin::Asin(), Atan::Atan(), Cos::Cos(), Exp::Exp(), Logarithm::Logarithm(), Sin(), Tan::Tan(), and UnaryOperator::UnaryOperator().
MonotonicityType UnaryOperator::monotonicity [protected, inherited] |
int SmoothOperator::nCount [inherited] |
Reimplemented from Operator.
Referenced by BinaryOperator::BinaryOperator(), COperator::COperator(), BinaryOperator::copy(), COperator::copy(), Projection::copy(), DoubleConstant::DoubleConstant(), UnaryOperator::operator=(), DoubleConstant::operator=(), Power_Int::operator=(), Power_Int::Power_Int(), Projection::Projection(), and UnaryOperator::UnaryOperator().
OperatorName UnaryOperator::operatorName [protected, inherited] |
Referenced by Acos::Acos(), Asin::Asin(), Atan::Atan(), Cos::Cos(), Exp::Exp(), UnaryOperator::getName(), Logarithm::Logarithm(), Sin(), and Tan::Tan().