|
Rosetta
|
#include <Arithmetic.hh>

Public Member Functions | |
| MaxExpression () | |
| MaxExpression (ExpressionCOP e1, ExpressionCOP e2) | |
| numeric::Real | operator() () const override |
| Returns the max of e1 and e2. More... | |
| ExpressionCOP | differentiate (std::string const &varname) const override |
| Returns the expression for the partial derivative of this expression by the variable named varname. If the partial derivative is always zero with respect to varname, returns null. More... | |
| std::list< std::string > | active_variables () const override |
Public Member Functions inherited from numeric::expression_parser::BinaryExpression | |
| BinaryExpression () | |
| ~BinaryExpression () override | |
| BinaryExpression (ExpressionCOP e1, ExpressionCOP e2) | |
| void | set_first_expression (ExpressionCOP e1) |
| void | set_second_expression (ExpressionCOP e2) |
| ExpressionCOP | e1 () const |
| ExpressionCOP | e2 () const |
Public Member Functions inherited from numeric::expression_parser::Expression | |
| ~Expression () override | |
| Automatically generated virtual destructor for class deriving directly from VirtualBase. More... | |
Public Member Functions inherited from utility::VirtualBase | |
| VirtualBase ()=default | |
| Default constructor. More... | |
| virtual | ~VirtualBase ()=default |
| The virtual destructor is one of the main reasons for the VirtualBase class. More... | |
| VirtualBase (VirtualBase const &)=default | |
| VirtualBase (VirtualBase &&)=default | |
| VirtualBase & | operator= (VirtualBase const &)=default |
| VirtualBase & | operator= (VirtualBase &&)=default |
| numeric::expression_parser::MaxExpression::MaxExpression | ( | ) |
| numeric::expression_parser::MaxExpression::MaxExpression | ( | ExpressionCOP | e1, |
| ExpressionCOP | e2 | ||
| ) |
|
overridevirtual |
Reimplemented from numeric::expression_parser::BinaryExpression.
References numeric::expression_parser::BinaryExpression::e1(), and numeric::expression_parser::BinaryExpression::e2().
|
overridevirtual |
Returns the expression for the partial derivative of this expression by the variable named varname. If the partial derivative is always zero with respect to varname, returns null.
Implements numeric::expression_parser::Expression.
References numeric::expression_parser::BinaryExpression::e1(), and numeric::expression_parser::BinaryExpression::e2().
|
overridevirtual |
Returns the max of e1 and e2.
get expression pointers; evaluate left and right hand sides; return the product.
Implements numeric::expression_parser::Expression.
References numeric::expression_parser::BinaryExpression::e1(), numeric::expression_parser::BinaryExpression::e2(), and max().