Drake
Drake C++ Documentation
Loading...
Searching...
No Matches
Polynomial< T >::Monomial Class Reference

Detailed Description

template<typename T = double>
class drake::Polynomial< T >::Monomial

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.
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.

Public Attributes

coefficient
std::vector< Termterms

Member Function Documentation

◆ Factor()

template<typename T = double>
Monomial Factor ( const Monomial & divisor) const

Factors this by other; returns 0 iff other does not divide this.

◆ GetDegree()

template<typename T = double>
int GetDegree ( ) const

◆ GetDegreeOf()

template<typename T = double>
int GetDegreeOf ( VarType var) const

◆ HasSameExponents()

template<typename T = double>
bool HasSameExponents ( const Monomial & other) const

◆ HasVariable()

template<typename T = double>
bool HasVariable ( const VarType & var) const

◆ operator<()

template<typename T = double>
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.

◆ operator==()

template<typename T = double>
bool operator== ( const Monomial & other) const

Member Data Documentation

◆ coefficient

template<typename T = double>
T coefficient

◆ terms

template<typename T = double>
std::vector<Term> terms

The documentation for this class was generated from the following file: