Drake
Polynomial< _CoefficientType >::Monomial Class Reference

An additive atom of a Polynomial: The product of any number of Terms and a coefficient. More...

#include <drake/common/polynomial.h>

Collaboration diagram for Polynomial< _CoefficientType >::Monomial:
[legend]

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
 
Monomial Factor (const Monomial &divisor) const
 Factors this by other; returns 0 iff other does not divide this. More...
 

Public Attributes

CoefficientType coefficient
 
std::vector< Termterms
 

Detailed Description

template<typename _CoefficientType = double>
class Polynomial< _CoefficientType >::Monomial

An additive atom of a Polynomial: The product of any number of Terms and a coefficient.

Member Function Documentation

Monomial Factor ( const Monomial divisor) const

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

Here is the caller graph for this function:

int GetDegree ( ) const

Here is the caller graph for this function:

int GetDegreeOf ( VarType  var) const

Here is the caller graph for this function:

bool HasSameExponents ( const Monomial other) const
bool operator< ( const Monomial other) const
inline

A comparison to allow std::lexicographical_compare on this class; does not reflect any sort of mathematical total order.

Here is the call graph for this function:

bool operator== ( const Monomial other) const
inline

Member Data Documentation

CoefficientType coefficient
std::vector<Term> terms

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