Generic class template for polynomials of arbitrary degrees. More...
#include <cmtkPolynomial.h>
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. |
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.
typedef TRealType cmtk::Polynomial< NDegree, TRealType >::RealValueType |
Real value type.
Definition at line 55 of file cmtkPolynomial.h.
typedef Polynomial<NDegree,TRealType> cmtk::Polynomial< NDegree, TRealType >::Self |
This class.
Definition at line 52 of file cmtkPolynomial.h.
anonymous enum |
Number of monomials in x, y, and z of degree up to NDegree.
Definition at line 58 of file cmtkPolynomial.h.
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.
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.