Generic class template for polynomials of degree 2. More...
#include <cmtkPolynomial.h>
Public Types | |
enum | { NumberOfMonomials = 9 } |
Number of monomials in x, y, and z of degree up to 2. More... | |
typedef Polynomial< 2, 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 degree 2.
Definition at line 142 of file cmtkPolynomial.h.
typedef TRealType cmtk::Polynomial< 2, TRealType >::RealValueType |
Real value type.
Definition at line 149 of file cmtkPolynomial.h.
typedef Polynomial<2,TRealType> cmtk::Polynomial< 2, TRealType >::Self |
This class.
Definition at line 146 of file cmtkPolynomial.h.
anonymous enum |
Number of monomials in x, y, and z of degree up to 2.
Definition at line 152 of file cmtkPolynomial.h.
static void cmtk::Polynomial< 2, 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 177 of file cmtkPolynomial.h.
static TRealType cmtk::Polynomial< 2, 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 155 of file cmtkPolynomial.h.