Drake
|
Symbolic expression representing NaN (not-a-number). More...
#include <drake/common/symbolic_expression_cell.h>
Public Member Functions | |
ExpressionNaN () | |
void | HashAppendDetail (DelegatingHasher *) const override |
Sends all hash-relevant bytes for this ExpressionCell type into the given hasher, per the hash_append generic hashing concept – except for get_kind(), because Expression already sends that. More... | |
Variables | GetVariables () const override |
Collects variables in expression. More... | |
bool | EqualTo (const ExpressionCell &e) const override |
Checks structural equality. More... | |
bool | Less (const ExpressionCell &e) const override |
Provides lexicographical ordering between expressions. More... | |
Polynomiald | ToPolynomial () const override |
Returns a Polynomial representing this expression. More... | |
double | Evaluate (const Environment &env) const override |
Evaluates under a given environment (by default, an empty environment). More... | |
Expression | Expand () const override |
Expands out products and positive integer powers in expression. More... | |
Expression | Substitute (const Substitution &s) const override |
Returns an Expression obtained by replacing all occurrences of the variables in s in the current expression cell with the corresponding expressions in s . More... | |
Expression | Differentiate (const Variable &x) const override |
Differentiates this symbolic expression with respect to the variable var . More... | |
std::ostream & | Display (std::ostream &os) const override |
Outputs string representation of expression into output stream os . More... | |
![]() | |
ExpressionKind | get_kind () const |
Returns expression kind. More... | |
bool | is_polynomial () const |
Checks if this symbolic expression is convertible to Polynomial. More... | |
Additional Inherited Members | |
![]() | |
ExpressionCell ()=default | |
Default constructor. More... | |
ExpressionCell (ExpressionCell &&e)=default | |
Move-constructs an ExpressionCell from an rvalue. More... | |
ExpressionCell (const ExpressionCell &e)=default | |
Copy-constructs an ExpressionCell from an lvalue. More... | |
ExpressionCell & | operator= (ExpressionCell &&e)=delete |
Move-assigns (DELETED). More... | |
ExpressionCell & | operator= (const ExpressionCell &e)=delete |
Copy-assigns (DELETED). More... | |
ExpressionCell (ExpressionKind k, bool is_poly) | |
Constructs ExpressionCell of kind k with is_poly . More... | |
virtual | ~ExpressionCell ()=default |
Default destructor. More... | |
Symbolic expression representing NaN (not-a-number).
ExpressionNaN | ( | ) |
|
overridevirtual |
Differentiates this symbolic expression with respect to the variable var
.
std::runtime_error | if it is not differentiable. |
Implements ExpressionCell.
|
overridevirtual |
Outputs string representation of expression into output stream os
.
Implements ExpressionCell.
|
overridevirtual |
Checks structural equality.
Implements ExpressionCell.
|
overridevirtual |
Evaluates under a given environment (by default, an empty environment).
std::runtime_error | if NaN is detected during evaluation. |
Implements ExpressionCell.
|
overridevirtual |
Expands out products and positive integer powers in expression.
std::runtime_error | if NaN is detected during expansion. |
Implements ExpressionCell.
|
overridevirtual |
Collects variables in expression.
Implements ExpressionCell.
|
overridevirtual |
Sends all hash-relevant bytes for this ExpressionCell type into the given hasher, per the hash_append generic hashing concept – except for get_kind(), because Expression already sends that.
Implements ExpressionCell.
|
overridevirtual |
Provides lexicographical ordering between expressions.
Implements ExpressionCell.
|
overridevirtual |
Returns an Expression obtained by replacing all occurrences of the variables in s
in the current expression cell with the corresponding expressions in s
.
std::runtime_error | if NaN is detected during substitution. |
Implements ExpressionCell.
|
overridevirtual |
Returns a Polynomial representing this expression.
Note that the ID of a variable is preserved in this translation.
Implements ExpressionCell.