Abstract base class for all scalar-valued symbolic operators. More...
#include <nonsmooth_operator.hpp>
Public Member Functions | |
virtual returnValue | AD_backward (int dim, VariableType *varType, int *component, Operator *seed, Operator **df, int &nNewIS, TreeProjection ***newIS) |
virtual returnValue | AD_backward (int number, double seed, double *df) |
virtual returnValue | AD_backward2 (int number, double seed1, double seed2, double *df, double *ddf) |
virtual Operator * | AD_forward (int dim, VariableType *varType, int *component, Operator **seed, int &nNewIS, TreeProjection ***newIS) |
virtual returnValue | AD_forward (int number, double *x, double *seed, double *f, double *df) |
virtual returnValue | AD_forward (int number, double *seed, double *df) |
virtual returnValue | AD_forward2 (int number, double *seed1, double *seed2, double *df, double *ddf) |
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 | clearBuffer () |
virtual Operator * | clone () const |
virtual TreeProjection * | cloneTreeProjection () const |
virtual Operator * | differentiate (int index) |
virtual returnValue | enumerateVariables (SymbolicIndexList *indexList) |
virtual returnValue | evaluate (int number, double *x, double *result) |
virtual returnValue | evaluate (EvaluationBase *x) |
virtual CurvatureType | getCurvature () |
virtual int | getGlobalIndex () const |
virtual MonotonicityType | getMonotonicity () |
virtual OperatorName | getName () |
virtual double | getValue () const |
virtual BooleanType | isDependingOn (VariableType var) const |
virtual BooleanType | isDependingOn (int dim, VariableType *varType, int *component, BooleanType *implicit_dep) |
virtual BooleanType | isLinearIn (int dim, VariableType *varType, int *component, BooleanType *implicit_dep) |
virtual NeutralElement | isOneOrZero () const |
virtual BooleanType | isPolynomialIn (int dim, VariableType *varType, int *component, BooleanType *implicit_dep) |
virtual BooleanType | isRationalIn (int dim, VariableType *varType, int *component, BooleanType *implicit_dep) |
virtual BooleanType | isSmooth () const |
virtual BooleanType | isSymbolic () const |
virtual BooleanType | isVariable (VariableType &varType, int &component) const |
virtual returnValue | loadIndices (SymbolicIndexList *indexList) |
NonsmoothOperator () | |
Expression | operator* (const double &arg) const |
Expression | operator* (const DVector &arg) const |
Expression | operator* (const DMatrix &arg) const |
Expression | operator* (const Operator &arg) const |
Expression | operator* (const Expression &arg) const |
Operator & | operator*= (const double &arg) |
Operator & | operator*= (const DVector &arg) |
Operator & | operator*= (const DMatrix &arg) |
Operator & | operator*= (const Expression &arg) |
Expression | operator+ (const double &arg) const |
Expression | operator+ (const DVector &arg) const |
Expression | operator+ (const DMatrix &arg) const |
Expression | operator+ (const Operator &arg) const |
Expression | operator+ (const Expression &arg) const |
Operator & | operator+= (const double &arg) |
Operator & | operator+= (const DVector &arg) |
Operator & | operator+= (const DMatrix &arg) |
Operator & | operator+= (const Expression &arg) |
Expression | operator- (const double &arg) const |
Expression | operator- (const DVector &arg) const |
Expression | operator- (const DMatrix &arg) const |
Expression | operator- (const Operator &arg) const |
Expression | operator- (const Expression &arg) const |
Expression | operator- () const |
Operator & | operator-= (const double &arg) |
Operator & | operator-= (const DVector &arg) |
Operator & | operator-= (const DMatrix &arg) |
Operator & | operator-= (const Expression &arg) |
Expression | operator/ (const double &arg) const |
Expression | operator/ (const Operator &arg) const |
Expression | operator/ (const Expression &arg) const |
Operator & | operator/= (const double &arg) |
Operator & | operator/= (const Expression &arg) |
ConstraintComponent | operator<= (const double &ub) const |
ConstraintComponent | operator<= (const DVector &ub) const |
ConstraintComponent | operator<= (const VariablesGrid &ub) const |
virtual Operator & | operator= (const double &arg) |
virtual Operator & | operator= (const DVector &arg) |
virtual Operator & | operator= (const DMatrix &arg) |
virtual Operator & | operator= (const Expression &arg) |
virtual Operator & | operator= (const Operator &arg) |
ConstraintComponent | operator== (const double &b) const |
ConstraintComponent | operator== (const DVector &b) const |
ConstraintComponent | operator== (const VariablesGrid &b) const |
ConstraintComponent | operator>= (const double &lb) const |
ConstraintComponent | operator>= (const DVector &lb) const |
ConstraintComponent | operator>= (const VariablesGrid &lb) const |
virtual Operator * | passArgument () const |
virtual std::ostream & | print (std::ostream &stream) const |
virtual returnValue | setCurvature (CurvatureType curvature_) |
virtual returnValue | setMonotonicity (MonotonicityType monotonicity_) |
virtual Operator * | substitute (int index, const Operator *sub) |
virtual | ~NonsmoothOperator () |
Public Attributes | |
int | nCount |
Abstract base class for all scalar-valued symbolic operators.
The class Operator serves as an abstract base class for all scalar-valued symbolic operators.
Definition at line 56 of file nonsmooth_operator.hpp.
Default constructor.
Definition at line 44 of file nonsmooth_operator.cpp.
NonsmoothOperator::~NonsmoothOperator | ( | ) | [virtual] |
Definition at line 48 of file nonsmooth_operator.cpp.
returnValue NonsmoothOperator::AD_backward | ( | int | dim, |
VariableType * | varType, | ||
int * | component, | ||
Operator * | seed, | ||
Operator ** | df, | ||
int & | nNewIS, | ||
TreeProjection *** | newIS | ||
) | [virtual] |
Automatic Differentiation in backward mode on the symbolic
level. 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 |
nNewIS | the number of new IS |
newIS | the new IS-pointer |
Implements Operator.
Definition at line 206 of file nonsmooth_operator.cpp.
returnValue NonsmoothOperator::AD_backward | ( | int | number, |
double | seed, | ||
double * | df | ||
) | [virtual] |
Automatic Differentiation in backward mode based on
buffered values
number | the buffer position |
seed | the seed |
df | the derivative of the expression |
Implements Operator.
Definition at line 345 of file nonsmooth_operator.cpp.
returnValue NonsmoothOperator::AD_backward2 | ( | int | number, |
double | seed1, | ||
double | seed2, | ||
double * | df, | ||
double * | ddf | ||
) | [virtual] |
Automatic Differentiation in backward mode for 2nd order
derivatives based on buffered values.
number | the buffer position |
seed1 | the seed1 |
seed2 | the seed2 |
df | the 1st derivative of the expression |
ddf | the 2nd derivative of the expression |
Implements Operator.
Definition at line 361 of file nonsmooth_operator.cpp.
Operator * NonsmoothOperator::AD_forward | ( | int | dim, |
VariableType * | varType, | ||
int * | component, | ||
Operator ** | seed, | ||
int & | nNewIS, | ||
TreeProjection *** | newIS | ||
) | [virtual] |
Automatic Differentiation in forward mode on the symbolic
level. 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 Operator.
Definition at line 194 of file nonsmooth_operator.cpp.
returnValue NonsmoothOperator::AD_forward | ( | int | number, |
double * | x, | ||
double * | seed, | ||
double * | f, | ||
double * | df | ||
) | [virtual] |
Automatic Differentiation in forward mode.
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 Operator.
Definition at line 327 of file nonsmooth_operator.cpp.
returnValue NonsmoothOperator::AD_forward | ( | int | number, |
double * | seed, | ||
double * | df | ||
) | [virtual] |
Automatic Differentiation in forward mode.
This function uses the intermediate
results from a buffer
number | storage position |
seed | the seed |
df | the derivative of the expression |
Implements Operator.
Definition at line 338 of file nonsmooth_operator.cpp.
returnValue NonsmoothOperator::AD_forward2 | ( | int | number, |
double * | seed1, | ||
double * | seed2, | ||
double * | df, | ||
double * | ddf | ||
) | [virtual] |
Automatic Differentiation in forward mode for
2nd derivatives.
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 of the expression |
ddf | the 2nd derivative of the expression |
Implements Operator.
Definition at line 351 of file nonsmooth_operator.cpp.
returnValue NonsmoothOperator::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] |
Automatic Differentiation in symmetric mode on the symbolic
level. This function generates an expression for a
second order derivative.
dim | number of directions |
varType | the variable types |
component | and their components |
l | the backward seed |
S | forward seed matrix |
dimS | dimension of forward seed |
dfS | first order foward result |
ldf | first order backward result |
H | upper trianglular part of the Hessian |
nNewLIS | the number of newLIS |
newLIS | the new LIS-pointer |
nNewSIS | the number of newSIS |
newSIS | the new SIS-pointer |
nNewHIS | the number of newHIS |
newHIS | the new HIS-pointer |
Implements Operator.
Definition at line 220 of file nonsmooth_operator.cpp.
returnValue NonsmoothOperator::clearBuffer | ( | ) | [virtual] |
Clears the buffer and resets the buffer size
to 1.
Implements Operator.
Definition at line 380 of file nonsmooth_operator.cpp.
Operator * NonsmoothOperator::clone | ( | ) | const [virtual] |
Provides a deep copy of the expression.
Implements Operator.
Definition at line 374 of file nonsmooth_operator.cpp.
TreeProjection * NonsmoothOperator::cloneTreeProjection | ( | ) | const [virtual] |
Provides a deep copy of a tree projection.
Reimplemented from Operator.
Definition at line 89 of file nonsmooth_operator.cpp.
Operator * NonsmoothOperator::differentiate | ( | int | index | ) | [virtual] |
Returns the derivative of the expression with respect
to the variable var(index).
index | diff. index |
Implements Operator.
Definition at line 188 of file nonsmooth_operator.cpp.
returnValue NonsmoothOperator::enumerateVariables | ( | SymbolicIndexList * | indexList | ) | [virtual] |
Enumerates all variables based on a common
IndexList.
Implements Operator.
Definition at line 386 of file nonsmooth_operator.cpp.
returnValue NonsmoothOperator::evaluate | ( | int | number, |
double * | x, | ||
double * | result | ||
) | [virtual] |
Evaluates the expression and stores the intermediate
results in a buffer (needed for automatic differentiation
in backward mode)
number | storage position |
x | the input variable x |
result | the result |
Implements Operator.
Definition at line 174 of file nonsmooth_operator.cpp.
returnValue NonsmoothOperator::evaluate | ( | EvaluationBase * | x | ) | [virtual] |
Evaluates the expression (templated version)
Implements Operator.
Definition at line 181 of file nonsmooth_operator.cpp.
CurvatureType NonsmoothOperator::getCurvature | ( | ) | [virtual] |
Returns the curvature of the expression
Implements Operator.
Definition at line 309 of file nonsmooth_operator.cpp.
int NonsmoothOperator::getGlobalIndex | ( | ) | const [virtual] |
Asks the variable for its relative index.
Asks the variable for its global index.
Reimplemented from Operator.
Definition at line 421 of file nonsmooth_operator.cpp.
MonotonicityType NonsmoothOperator::getMonotonicity | ( | ) | [virtual] |
Returns the monotonicity of the expression.
Implements Operator.
Definition at line 303 of file nonsmooth_operator.cpp.
OperatorName NonsmoothOperator::getName | ( | ) | [virtual] |
Asks the expression for its name.
Implements Operator.
Definition at line 395 of file nonsmooth_operator.cpp.
double NonsmoothOperator::getValue | ( | ) | const [virtual] |
Return the value of the constant
Reimplemented from Operator.
Definition at line 419 of file nonsmooth_operator.cpp.
BooleanType NonsmoothOperator::isDependingOn | ( | VariableType | var | ) | const [virtual] |
Asks the expression whether it is depending on a certian type of
variable.
Implements Operator.
Definition at line 255 of file nonsmooth_operator.cpp.
BooleanType NonsmoothOperator::isDependingOn | ( | int | dim, |
VariableType * | varType, | ||
int * | component, | ||
BooleanType * | implicit_dep | ||
) | [virtual] |
Checks whether the expression is depending on a variable
dim | number of directions |
varType | the variable types |
component | and their components |
implicit_dep | implicit dependencies |
Implements Operator.
Definition at line 261 of file nonsmooth_operator.cpp.
BooleanType NonsmoothOperator::isLinearIn | ( | int | dim, |
VariableType * | varType, | ||
int * | component, | ||
BooleanType * | implicit_dep | ||
) | [virtual] |
Checks whether the expression is linear in
(or not depending on) a variable
dim | number of directions |
varType | the variable types |
component | and their components |
implicit_dep | implicit dependencies |
Implements Operator.
Definition at line 270 of file nonsmooth_operator.cpp.
NeutralElement NonsmoothOperator::isOneOrZero | ( | ) | const [virtual] |
Checks whether the expression is zero or one
Implements Operator.
Definition at line 249 of file nonsmooth_operator.cpp.
BooleanType NonsmoothOperator::isPolynomialIn | ( | int | dim, |
VariableType * | varType, | ||
int * | component, | ||
BooleanType * | implicit_dep | ||
) | [virtual] |
Checks whether the expression is polynomial in
the specified variables
dim | number of directions |
varType | the variable types |
component | and their components |
implicit_dep | implicit dependencies |
Implements Operator.
Definition at line 279 of file nonsmooth_operator.cpp.
BooleanType NonsmoothOperator::isRationalIn | ( | int | dim, |
VariableType * | varType, | ||
int * | component, | ||
BooleanType * | implicit_dep | ||
) | [virtual] |
Checks whether the expression is rational in
the specified variables
dim | number of directions |
varType | the variable types |
component | and their components |
implicit_dep | implicit dependencies |
Implements Operator.
Definition at line 288 of file nonsmooth_operator.cpp.
BooleanType NonsmoothOperator::isSmooth | ( | ) | const [virtual] |
Checks whether the expression is smooth in time
Implements Operator.
Definition at line 297 of file nonsmooth_operator.cpp.
BooleanType NonsmoothOperator::isSymbolic | ( | ) | const [virtual] |
Asks whether all elements are purely symbolic.
Implements Operator.
Definition at line 412 of file nonsmooth_operator.cpp.
BooleanType NonsmoothOperator::isVariable | ( | VariableType & | varType, |
int & | component | ||
) | const [virtual] |
Asks the expression whether it is a variable.
Implements Operator.
Definition at line 400 of file nonsmooth_operator.cpp.
returnValue NonsmoothOperator::loadIndices | ( | SymbolicIndexList * | indexList | ) | [virtual] |
The function loadIndices passes an IndexList through
the whole expression tree. 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.
indexList | The index list to be filled with entries |
Implements Operator.
Definition at line 406 of file nonsmooth_operator.cpp.
Expression NonsmoothOperator::operator* | ( | const double & | arg | ) | const |
Reimplemented from Operator.
Definition at line 135 of file nonsmooth_operator.cpp.
Expression NonsmoothOperator::operator* | ( | const DVector & | arg | ) | const |
Definition at line 136 of file nonsmooth_operator.cpp.
Expression NonsmoothOperator::operator* | ( | const DMatrix & | arg | ) | const |
Reimplemented from Operator.
Definition at line 137 of file nonsmooth_operator.cpp.
Expression NonsmoothOperator::operator* | ( | const Operator & | arg | ) | const |
Reimplemented from Operator.
Definition at line 140 of file nonsmooth_operator.cpp.
Expression NonsmoothOperator::operator* | ( | const Expression & | arg | ) | const |
Reimplemented from Operator.
Definition at line 152 of file nonsmooth_operator.cpp.
Operator & NonsmoothOperator::operator*= | ( | const double & | arg | ) |
Reimplemented from Operator.
Definition at line 110 of file nonsmooth_operator.cpp.
Definition at line 111 of file nonsmooth_operator.cpp.
Reimplemented from Operator.
Definition at line 112 of file nonsmooth_operator.cpp.
Operator & NonsmoothOperator::operator*= | ( | const Expression & | arg | ) |
Reimplemented from Operator.
Definition at line 113 of file nonsmooth_operator.cpp.
Expression NonsmoothOperator::operator+ | ( | const double & | arg | ) | const |
Reimplemented from Operator.
Definition at line 121 of file nonsmooth_operator.cpp.
Expression NonsmoothOperator::operator+ | ( | const DVector & | arg | ) | const |
Definition at line 122 of file nonsmooth_operator.cpp.
Expression NonsmoothOperator::operator+ | ( | const DMatrix & | arg | ) | const |
Reimplemented from Operator.
Definition at line 123 of file nonsmooth_operator.cpp.
Expression NonsmoothOperator::operator+ | ( | const Operator & | arg | ) | const |
Reimplemented from Operator.
Definition at line 124 of file nonsmooth_operator.cpp.
Expression NonsmoothOperator::operator+ | ( | const Expression & | arg | ) | const |
Reimplemented from Operator.
Definition at line 125 of file nonsmooth_operator.cpp.
Operator & NonsmoothOperator::operator+= | ( | const double & | arg | ) |
Reimplemented from Operator.
Definition at line 100 of file nonsmooth_operator.cpp.
Definition at line 101 of file nonsmooth_operator.cpp.
Reimplemented from Operator.
Definition at line 102 of file nonsmooth_operator.cpp.
Operator & NonsmoothOperator::operator+= | ( | const Expression & | arg | ) |
Reimplemented from Operator.
Definition at line 103 of file nonsmooth_operator.cpp.
Expression NonsmoothOperator::operator- | ( | const double & | arg | ) | const |
Reimplemented from Operator.
Definition at line 127 of file nonsmooth_operator.cpp.
Expression NonsmoothOperator::operator- | ( | const DVector & | arg | ) | const |
Definition at line 128 of file nonsmooth_operator.cpp.
Expression NonsmoothOperator::operator- | ( | const DMatrix & | arg | ) | const |
Reimplemented from Operator.
Definition at line 129 of file nonsmooth_operator.cpp.
Expression NonsmoothOperator::operator- | ( | const Operator & | arg | ) | const |
Reimplemented from Operator.
Definition at line 130 of file nonsmooth_operator.cpp.
Expression NonsmoothOperator::operator- | ( | const Expression & | arg | ) | const |
Reimplemented from Operator.
Definition at line 131 of file nonsmooth_operator.cpp.
Expression NonsmoothOperator::operator- | ( | ) | const |
Reimplemented from Operator.
Definition at line 133 of file nonsmooth_operator.cpp.
Operator & NonsmoothOperator::operator-= | ( | const double & | arg | ) |
Reimplemented from Operator.
Definition at line 105 of file nonsmooth_operator.cpp.
Definition at line 106 of file nonsmooth_operator.cpp.
Reimplemented from Operator.
Definition at line 107 of file nonsmooth_operator.cpp.
Operator & NonsmoothOperator::operator-= | ( | const Expression & | arg | ) |
Reimplemented from Operator.
Definition at line 108 of file nonsmooth_operator.cpp.
Expression NonsmoothOperator::operator/ | ( | const double & | arg | ) | const |
Reimplemented from Operator.
Definition at line 154 of file nonsmooth_operator.cpp.
Expression NonsmoothOperator::operator/ | ( | const Operator & | arg | ) | const |
Reimplemented from Operator.
Definition at line 155 of file nonsmooth_operator.cpp.
Expression NonsmoothOperator::operator/ | ( | const Expression & | arg | ) | const |
Reimplemented from Operator.
Definition at line 156 of file nonsmooth_operator.cpp.
Operator & NonsmoothOperator::operator/= | ( | const double & | arg | ) |
Reimplemented from Operator.
Definition at line 115 of file nonsmooth_operator.cpp.
Operator & NonsmoothOperator::operator/= | ( | const Expression & | arg | ) |
Reimplemented from Operator.
Definition at line 116 of file nonsmooth_operator.cpp.
ConstraintComponent NonsmoothOperator::operator<= | ( | const double & | ub | ) | const |
Reimplemented from Operator.
Definition at line 159 of file nonsmooth_operator.cpp.
ConstraintComponent NonsmoothOperator::operator<= | ( | const DVector & | ub | ) | const |
Definition at line 163 of file nonsmooth_operator.cpp.
ConstraintComponent NonsmoothOperator::operator<= | ( | const VariablesGrid & | ub | ) | const |
Reimplemented from Operator.
Definition at line 167 of file nonsmooth_operator.cpp.
Operator & NonsmoothOperator::operator= | ( | const double & | arg | ) | [virtual] |
Sets the argument (note that arg should have dimension 1).
Reimplemented from Operator.
Definition at line 53 of file nonsmooth_operator.cpp.
Definition at line 60 of file nonsmooth_operator.cpp.
Reimplemented from Operator.
Definition at line 67 of file nonsmooth_operator.cpp.
Operator & NonsmoothOperator::operator= | ( | const Expression & | arg | ) | [virtual] |
Reimplemented from Operator.
Definition at line 74 of file nonsmooth_operator.cpp.
Reimplemented from Operator.
Definition at line 81 of file nonsmooth_operator.cpp.
ConstraintComponent NonsmoothOperator::operator== | ( | const double & | b | ) | const |
Reimplemented from Operator.
Definition at line 161 of file nonsmooth_operator.cpp.
ConstraintComponent NonsmoothOperator::operator== | ( | const DVector & | b | ) | const |
Definition at line 165 of file nonsmooth_operator.cpp.
ConstraintComponent NonsmoothOperator::operator== | ( | const VariablesGrid & | b | ) | const |
Reimplemented from Operator.
Definition at line 169 of file nonsmooth_operator.cpp.
ConstraintComponent NonsmoothOperator::operator>= | ( | const double & | lb | ) | const |
Reimplemented from Operator.
Definition at line 160 of file nonsmooth_operator.cpp.
ConstraintComponent NonsmoothOperator::operator>= | ( | const DVector & | lb | ) | const |
Definition at line 164 of file nonsmooth_operator.cpp.
ConstraintComponent NonsmoothOperator::operator>= | ( | const VariablesGrid & | lb | ) | const |
Reimplemented from Operator.
Definition at line 168 of file nonsmooth_operator.cpp.
Operator * NonsmoothOperator::passArgument | ( | ) | const [virtual] |
Returns the argument or NULL if no intermediate argument available
Reimplemented from Operator.
Definition at line 428 of file nonsmooth_operator.cpp.
std::ostream & NonsmoothOperator::print | ( | std::ostream & | stream | ) | const [virtual] |
Prints the expression into a stream.
Implements Operator.
Definition at line 368 of file nonsmooth_operator.cpp.
returnValue NonsmoothOperator::setCurvature | ( | CurvatureType | curvature_ | ) | [virtual] |
Overwrites the curvature of the expression.
(For the case that the curvature is explicitly known)
Implements Operator.
Definition at line 321 of file nonsmooth_operator.cpp.
returnValue NonsmoothOperator::setMonotonicity | ( | MonotonicityType | monotonicity_ | ) | [virtual] |
Overwrites the monotonicity of the expression.
(For the case that the monotonicity is explicitly known)
Implements Operator.
Definition at line 315 of file nonsmooth_operator.cpp.
Operator * NonsmoothOperator::substitute | ( | int | index, |
const Operator * | sub | ||
) | [virtual] |
Substitutes var(index) with the expression sub.
index | subst. index |
sub | the substitution |
Implements Operator.
Definition at line 242 of file nonsmooth_operator.cpp.
Reimplemented from Operator.
Definition at line 520 of file nonsmooth_operator.hpp.