cisst-saw
|
#include <nmrSingleVariablePowerBasis.h>
Public Types | |
typedef double | VariableType |
typedef nmrPolynomialTermPowerIndex::PowerType | PowerType |
Public Member Functions | |
nmrSingleVariablePowerBasis (PowerType degree) | |
void | Initialize (PowerType degree) |
PowerType | GetDegree () const |
VariableType | GetVariable () const |
VariableType | GetVariablePower (PowerType power) const |
VariableType | operator[] (PowerType power) const |
void | SetVariable (VariableType variable) |
Stores the power basis for a single variable. A nmrSingleVariablePowerBasis is initialized with the maximal degree for which the variable is raised. Call SetVariable() to set the variable and calculate the sequence of powers.
typedef double nmrSingleVariablePowerBasis::VariableType |
|
inline |
|
inline |
Return the maximal degree of the variable in this power sequence
|
inline |
Return the current value of the variable.
|
inline |
Return a pre-computed power of the variable (assert limits)
|
inline |
This function initializes the variable to zero and the degree to the given value. It is to be called during events such as serialization.
|
inline |
Return a pre-computed power of the variable
void nmrSingleVariablePowerBasis::SetVariable | ( | VariableType | variable | ) |
Set the value of the variable and the rest of the power sequence