Public Types | Static Public Member Functions

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

Generic class template for polynomials of degree 4. More...

#include <cmtkPolynomial.h>

List of all members.

Public Types

enum  { NumberOfMonomials = 34 }
 

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

More...
typedef Polynomial< 4, 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<class TRealType>
class cmtk::Polynomial< 4, TRealType >

Generic class template for polynomials of degree 4.

Definition at line 260 of file cmtkPolynomial.h.


Member Typedef Documentation

template<class TRealType >
typedef TRealType cmtk::Polynomial< 4, TRealType >::RealValueType

Real value type.

Definition at line 267 of file cmtkPolynomial.h.

template<class TRealType >
typedef Polynomial<4,TRealType> cmtk::Polynomial< 4, TRealType >::Self

This class.

Definition at line 264 of file cmtkPolynomial.h.


Member Enumeration Documentation

template<class TRealType >
anonymous enum

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

Enumerator:
NumberOfMonomials 

Definition at line 270 of file cmtkPolynomial.h.


Member Function Documentation

template<class TRealType >
static void cmtk::Polynomial< 4, 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 323 of file cmtkPolynomial.h.

template<class TRealType >
static TRealType cmtk::Polynomial< 4, 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 273 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