An additive atom of a Polynomial: The product of any number of Terms and a coefficient.
#include <drake/common/polynomial.h>
Public Member Functions | |
bool | operator== (const Monomial &other) const |
bool | operator< (const Monomial &other) const |
A comparison to allow std::lexicographical_compare on this class; does not reflect any sort of mathematical total order. More... | |
int | GetDegree () const |
int | GetDegreeOf (VarType var) const |
bool | HasSameExponents (const Monomial &other) const |
bool | HasVariable (const VarType &var) const |
Monomial | Factor (const Monomial &divisor) const |
Factors this by other; returns 0 iff other does not divide this. More... | |
Public Attributes | |
T | coefficient |
std::vector< Term > | terms |
Factors this by other; returns 0 iff other does not divide this.
int GetDegree | ( | ) | const |
bool HasSameExponents | ( | const Monomial & | other | ) | const |
bool HasVariable | ( | const VarType & | var | ) | const |
bool operator< | ( | const Monomial & | other | ) | const |
A comparison to allow std::lexicographical_compare on this class; does not reflect any sort of mathematical total order.
bool operator== | ( | const Monomial & | other | ) | const |
T coefficient |
std::vector<Term> terms |