|
MPSolve 3.2.2
|
Public Member Functions | |
| Monomial () | |
| Create a default Monomial, consisting of the 0 constant with conventional degree -1. | |
| Monomial (const char *coeff_string, long degree) | |
| Create a monomial starting from a string representing the coefficient and an integer representing the degree. | |
| Monomial (const char *real_part, const char *imag_part, long degree) | |
| Create a monomial starting from a string representing the coefficient and an integer representing the degree. | |
| Monomial (const mpq_class coeff, long degree) | |
| Create a monomial with the given coefficient and of the specified degree. | |
| Monomial (const mpq_class real, const mpq_class imag, long degree) | |
| Create a monomial with the given coefficient and of the specified degree. | |
| Monomial (const Monomial &rhs) | |
| Copy constructor. | |
| const long | degree () const |
| Get the degree of the monomial. | |
| const mpq_class | coefficientReal () const |
| Access the real GMP coefficient stored inside the Monomial. | |
| const mpq_class | coefficientImag () const |
| Access the imaginary GMP coefficient stored inside the Monomial. | |
| bool | isZero () const |
| Check if this is the zero monomial. | |
| bool | isReal () const |
| Check whether the monomial has a real coefficient. | |
| bool | isImag () const |
| Check whether the monomial has a real coefficient. | |
| Monomial | operator- () |
| Monomial & | operator*= (const Monomial &other) |
| Multiply two monomials together. | |
| Monomial | operator* (const Monomial &other) const |
| Multiply two monomials together. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Monomial &l) |
| Print a monomial to a stream. | |