#include <Operation.h>
|
| enum | Id {
CONSTANT
, VARIABLE
, CUSTOM
, ADD
,
SUBTRACT
, MULTIPLY
, DIVIDE
, POWER
,
NEGATE
, SQRT
, EXP
, LOG
,
SIN
, COS
, SEC
, CSC
,
TAN
, COT
, ASIN
, ACOS
,
ATAN
, ATAN2
, SINH
, COSH
,
TANH
, ERF
, ERFC
, STEP
,
DELTA
, NANDELTA
, SQUARE
, CUBE
,
RECIPROCAL
, ADD_CONSTANT
, MULTIPLY_CONSTANT
, POWER_CONSTANT
,
MIN
, MAX
, ABS
, FLOOR
,
CEIL
, SELECT
, ACOT
, ASEC
,
ACSC
, COTH
, SECH
, CSCH
,
ASINH
, ACOSH
, ATANH
, ACOTH
,
ASECH
, ACSCH
} |
| | This enumeration lists all Operation subclasses. More...
|
| |
◆ Id
This enumeration lists all Operation subclasses.
This is provided so that switch statements can be used when processing or analyzing parsed expressions.
| Enumerator |
|---|
| CONSTANT | |
| VARIABLE | |
| CUSTOM | |
| ADD | |
| SUBTRACT | |
| MULTIPLY | |
| DIVIDE | |
| POWER | |
| NEGATE | |
| SQRT | |
| EXP | |
| LOG | |
| SIN | |
| COS | |
| SEC | |
| CSC | |
| TAN | |
| COT | |
| ASIN | |
| ACOS | |
| ATAN | |
| ATAN2 | |
| SINH | |
| COSH | |
| TANH | |
| ERF | |
| ERFC | |
| STEP | |
| DELTA | |
| NANDELTA | |
| SQUARE | |
| CUBE | |
| RECIPROCAL | |
| ADD_CONSTANT | |
| MULTIPLY_CONSTANT | |
| POWER_CONSTANT | |
| MIN | |
| MAX | |
| ABS | |
| FLOOR | |
| CEIL | |
| SELECT | |
| ACOT | |
| ASEC | |
| ACSC | |
| COTH | |
| SECH | |
| CSCH | |
| ASINH | |
| ACOSH | |
| ATANH | |
| ACOTH | |
| ASECH | |
| ACSCH | |
◆ Custom() [1/3]
◆ Custom() [2/3]
◆ Custom() [3/3]
◆ ~Custom()
| PLMD::lepton::Operation::Custom::~Custom |
( |
| ) |
|
|
inline |
◆ clone()
| Operation * PLMD::lepton::Operation::Custom::clone |
( |
| ) |
const |
|
inlinevirtual |
◆ differentiate()
Return an ExpressionTreeNode which represents the analytic derivative of this Operation with respect to a variable.
- Parameters
-
| children | the child nodes |
| childDerivs | the derivatives of the child nodes with respect to the variable |
| variable | the variable with respect to which the derivate should be taken |
Implements PLMD::lepton::Operation.
◆ evaluate()
| double PLMD::lepton::Operation::Custom::evaluate |
( |
double * | args, |
|
|
const std::map< std::string, double > & | variables ) const |
|
inlinevirtual |
Perform the computation represented by this operation.
- Parameters
-
| args | the array of arguments |
| variables | a map containing the values of all variables |
- Returns
- the result of performing the computation.
Implements PLMD::lepton::Operation.
◆ getDerivOrder()
| const std::vector< int > & PLMD::lepton::Operation::Custom::getDerivOrder |
( |
| ) |
const |
|
inline |
◆ getId()
| Id PLMD::lepton::Operation::Custom::getId |
( |
| ) |
const |
|
inlinevirtual |
◆ getName()
| std::string PLMD::lepton::Operation::Custom::getName |
( |
| ) |
const |
|
inlinevirtual |
◆ getNumArguments()
| int PLMD::lepton::Operation::Custom::getNumArguments |
( |
| ) |
const |
|
inlinevirtual |
◆ isInfixOperator()
| virtual bool PLMD::lepton::Operation::isInfixOperator |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ isSymmetric()
| virtual bool PLMD::lepton::Operation::isSymmetric |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ operator!=()
| bool PLMD::lepton::Operation::Custom::operator!= |
( |
const Operation & | op | ) |
const |
|
inlinevirtual |
◆ operator==()
| virtual bool PLMD::lepton::Operation::operator== |
( |
const Operation & | op | ) |
const |
|
inlinevirtualinherited |
◆ derivOrder
| std::vector<int> PLMD::lepton::Operation::Custom::derivOrder |
|
private |
◆ function
◆ isDerivative
| bool PLMD::lepton::Operation::Custom::isDerivative |
|
private |
◆ name
| std::string PLMD::lepton::Operation::Custom::name |
|
private |
The documentation for this class was generated from the following files: