manages fast access to coefficients of a polynom in x More...
#include <fast_polynom.h>
Public Types | |
typedef TNum | CoefficientType |
Public Member Functions | |
Constructors / Destructors | |
fast_polynomx (const int gr) | |
fast_polynomx (const fast_polynomx &fpx) | |
~fast_polynomx () | |
operators | |
fast_polynomx & | operator= (const fast_polynomx &fpx) |
data access | |
TNum | getCoeff (const int x_exp) const |
TNum & | getCoeffRef (const int x_exp) |
const TNum & | getCoeffConstRef (const int x_exp) const |
TNum const | getCoeffConst (const int x_exp) const |
void | setCoeff (const int x_exp, const TNum &value) |
properties | |
const int | getDegree () const |
init | |
void | clear (int _degree) |
void | clear () |
clear all elements | |
Private Attributes | |
const int | maxDegree |
const int | size |
TNum * | koeff |
koeff[x_exp] = value; |
Definition at line 143 of file fast_polynom.h.
typedef TNum fast_polynomx< TNum >::CoefficientType |
Definition at line 154 of file fast_polynom.h.
fast_polynomx< TNum >::fast_polynomx | ( | const int | gr | ) | [inline] |
Definition at line 594 of file fast_polynom.cpp.
References fast_polynomx< TNum >::clear(), fast_polynomx< TNum >::koeff, and fast_polynomx< TNum >::size.
fast_polynomx< TNum >::fast_polynomx | ( | const fast_polynomx< TNum > & | fpx | ) | [inline] |
Definition at line 615 of file fast_polynom.cpp.
References fast_polynomx< TNum >::koeff, and fast_polynomx< TNum >::size.
fast_polynomx< TNum >::~fast_polynomx | ( | ) | [inline] |
Definition at line 609 of file fast_polynom.cpp.
References fast_polynomx< TNum >::koeff.
void fast_polynomx< TNum >::clear | ( | ) | [inline] |
Definition at line 740 of file fast_polynom.cpp.
References fast_polynomx< TNum >::koeff, and fast_polynomx< TNum >::size.
Referenced by fast_polynomx< TNum >::fast_polynomx().
void fast_polynomx< TNum >::clear | ( | int | _degree | ) | [inline] |
Definition at line 714 of file fast_polynom.cpp.
References fast_polynomx< TNum >::koeff, fast_polynomx< TNum >::maxDegree, and fast_polynomx< TNum >::size.
TNum fast_polynomx< TNum >::getCoeff | ( | const int | x_exp | ) | const [inline] |
Definition at line 641 of file fast_polynom.cpp.
References fast_polynomx< TNum >::koeff.
TNum const fast_polynomx< TNum >::getCoeffConst | ( | const int | x_exp | ) | const [inline] |
Definition at line 685 of file fast_polynom.cpp.
References fast_polynomx< TNum >::koeff.
const TNum & fast_polynomx< TNum >::getCoeffConstRef | ( | const int | x_exp | ) | const [inline] |
Definition at line 670 of file fast_polynom.cpp.
References fast_polynomx< TNum >::koeff.
TNum & fast_polynomx< TNum >::getCoeffRef | ( | const int | x_exp | ) | [inline] |
Definition at line 655 of file fast_polynom.cpp.
References fast_polynomx< TNum >::koeff.
const int fast_polynomx< TNum >::getDegree | ( | ) | const [inline] |
Definition at line 756 of file fast_polynom.cpp.
References fast_polynomx< TNum >::maxDegree.
fast_polynomx< TNum > & fast_polynomx< TNum >::operator= | ( | const fast_polynomx< TNum > & | fpx | ) | [inline] |
Definition at line 624 of file fast_polynom.cpp.
References fast_polynomx< TNum >::koeff, fast_polynomx< TNum >::maxDegree, and fast_polynomx< TNum >::size.
void fast_polynomx< TNum >::setCoeff | ( | const int | x_exp, | |
const TNum & | value | |||
) | [inline] |
Definition at line 699 of file fast_polynom.cpp.
References fast_polynomx< TNum >::koeff.
TNum* fast_polynomx< TNum >::koeff [private] |
Definition at line 151 of file fast_polynom.h.
Referenced by fast_polynomx< TNum >::clear(), fast_polynomx< TNum >::fast_polynomx(), fast_polynomx< TNum >::getCoeff(), fast_polynomx< TNum >::getCoeffConst(), fast_polynomx< TNum >::getCoeffConstRef(), fast_polynomx< TNum >::getCoeffRef(), fast_polynomx< TNum >::operator=(), fast_polynomx< TNum >::setCoeff(), and fast_polynomx< TNum >::~fast_polynomx().
const int fast_polynomx< TNum >::maxDegree [private] |
Definition at line 147 of file fast_polynom.h.
Referenced by fast_polynomx< TNum >::clear(), fast_polynomx< TNum >::getDegree(), and fast_polynomx< TNum >::operator=().
const int fast_polynomx< TNum >::size [private] |
Definition at line 149 of file fast_polynom.h.
Referenced by fast_polynomx< TNum >::clear(), fast_polynomx< TNum >::fast_polynomx(), and fast_polynomx< TNum >::operator=().