#include <polynomials.h>
Public Member Functions | |
Polynomial () | |
Polynomial (Degree d) | |
void | swap (Polynomial &other) |
C | operator[] (Degree j) const |
bool | operator== (const Polynomial &q) const |
bool | operator< (const Polynomial &q) const |
Degree | degree () const |
bool | isZero () const |
C & | operator[] (Degree j) |
Polynomial & | operator+= (const Polynomial &) |
Polynomial & | operator-= (const Polynomial &) |
Polynomial & | operator *= (C) |
Polynomial & | safeAdd (const Polynomial &, Degree d=0, C c=1) |
Polynomial & | safeSubtract (const Polynomial &, Degree d=0, C c=1) |
Private Member Functions | |
void | adjustSize () |
Private Attributes | |
std::vector< C > | d_data |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|