fast_polynomx< TNum > Class Template Reference
[Algebra objectsPolynoms]

manages fast access to coefficients of a polynom in x More...

#include <fast_polynom.h>

List of all members.

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_polynomxoperator= (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;

Detailed Description

template<class TNum>
class fast_polynomx< TNum >

Note:
used only by nxnxn

Definition at line 143 of file fast_polynom.h.


Member Typedef Documentation

template<class TNum>
typedef TNum fast_polynomx< TNum >::CoefficientType

Definition at line 154 of file fast_polynom.h.


Constructor & Destructor Documentation

template<class TNum >
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.

Here is the call graph for this function:

template<class TNum >
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.

template<class TNum >
fast_polynomx< TNum >::~fast_polynomx (  )  [inline]

Definition at line 609 of file fast_polynom.cpp.

References fast_polynomx< TNum >::koeff.


Member Function Documentation

template<class TNum >
void fast_polynomx< TNum >::clear (  )  [inline]
template<class TNum >
void fast_polynomx< TNum >::clear ( int  _degree  )  [inline]
Todo:
: memset war schneller, aber unsicher. Wieso war denn die folgende memset-Anweisung korrekt? WEIL es sich hier i, polynomX nicht um POLYNOMXY handelt !!

Definition at line 714 of file fast_polynom.cpp.

References fast_polynomx< TNum >::koeff, fast_polynomx< TNum >::maxDegree, and fast_polynomx< TNum >::size.

template<class TNum >
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.

template<class TNum >
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.

template<class TNum >
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.

template<class TNum >
TNum & fast_polynomx< TNum >::getCoeffRef ( const int  x_exp  )  [inline]

Definition at line 655 of file fast_polynom.cpp.

References fast_polynomx< TNum >::koeff.

template<class TNum >
const int fast_polynomx< TNum >::getDegree (  )  const [inline]

Definition at line 756 of file fast_polynom.cpp.

References fast_polynomx< TNum >::maxDegree.

template<class TNum >
fast_polynomx< TNum > & fast_polynomx< TNum >::operator= ( const fast_polynomx< TNum > &  fpx  )  [inline]
template<class TNum >
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.


Member Data Documentation

template<class TNum>
TNum* fast_polynomx< TNum >::koeff [private]
template<class TNum>
const int fast_polynomx< TNum >::maxDegree [private]
template<class TNum>
const int fast_polynomx< TNum >::size [private]

The documentation for this class was generated from the following files:
Generated on Tue Nov 23 13:10:53 2010 for centerfocus by  doxygen 1.6.3