Drake
Polynomial< _CoefficientType >::Term Class Reference

An individual variable raised to an integer power; e.g. x**2. More...

#include <drake/common/polynomial.h>

Public Member Functions

bool operator== (const Term &other) const
 
bool operator< (const Term &other) const
 A comparison to allow std::lexicographical_compare on this class; does not reflect any sort of mathematical total order. More...
 

Public Attributes

VarType var
 
PowerType power
 

Detailed Description

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

An individual variable raised to an integer power; e.g. x**2.

Member Function Documentation

◆ operator<()

bool operator< ( const Term other) const
inline

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

◆ operator==()

bool operator== ( const Term other) const
inline

Member Data Documentation

◆ power

PowerType power

◆ var

VarType var

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