Public Types | Static Public Member Functions

cmtk::Polynomial< NDegree, TRealType > Class Template Reference
[cmtkBase Library]

Generic class template for polynomials of arbitrary degrees. More...

#include <cmtkPolynomial.h>

List of all members.

Public Types

enum  { NumberOfMonomials = 0 }
 

Number of monomials in x, y, and z of degree up to NDegree.

More...
typedef Polynomial< NDegree,
TRealType > 
Self
 This class.
typedef TRealType RealValueType
 Real value type.

Static Public Member Functions

static TRealType EvaluateMonomialAt (const size_t idx, const TRealType x, const TRealType y, const TRealType z)
 Evaluate the idx'th monomial at (x,y,z).
static void EvaluateAllMonomials (TRealType *const mvec, const TRealType x, const TRealType y, const TRealType z)
 Evaluate all monomials at one point.

Detailed Description

template<unsigned int NDegree, class TRealType = double>
class cmtk::Polynomial< NDegree, TRealType >

Generic class template for polynomials of arbitrary degrees.

This must be implemented by partial specialization for each degree that is needed in the program.

Definition at line 48 of file cmtkPolynomial.h.


Member Typedef Documentation

template<unsigned int NDegree, class TRealType = double>
typedef TRealType cmtk::Polynomial< NDegree, TRealType >::RealValueType

Real value type.

Definition at line 55 of file cmtkPolynomial.h.

template<unsigned int NDegree, class TRealType = double>
typedef Polynomial<NDegree,TRealType> cmtk::Polynomial< NDegree, TRealType >::Self

This class.

Definition at line 52 of file cmtkPolynomial.h.


Member Enumeration Documentation

template<unsigned int NDegree, class TRealType = double>
anonymous enum

Number of monomials in x, y, and z of degree up to NDegree.

Enumerator:
NumberOfMonomials 

Definition at line 58 of file cmtkPolynomial.h.


Member Function Documentation

template<unsigned int NDegree, class TRealType = double>
static void cmtk::Polynomial< NDegree, TRealType >::EvaluateAllMonomials ( TRealType *const   mvec,
const TRealType  x,
const TRealType  y,
const TRealType  z 
) [inline, static]

Evaluate all monomials at one point.

This is more efficient than calling EvaluateMonomialAt() repeatedly, because the computation can proceed incrementally and save most multiplications in the process.

Definition at line 70 of file cmtkPolynomial.h.

template<unsigned int NDegree, class TRealType = double>
static TRealType cmtk::Polynomial< NDegree, TRealType >::EvaluateMonomialAt ( const size_t  idx,
const TRealType  x,
const TRealType  y,
const TRealType  z 
) [inline, static]

Evaluate the idx'th monomial at (x,y,z).

Definition at line 61 of file cmtkPolynomial.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines