Piecewise polynomial.
More...
#include <PiecewisePolynomial.h>
|
| | PiecewisePolynomial () |
| | Default constructor.
|
| |
| | PiecewisePolynomial (int pieces, int numLocalCoefficients) |
| | Constructs piecewise polynomial of specified size.
|
| |
| | PiecewisePolynomial (const T *pBreaks, const T *pCoeffs, int coeffsStride1, int coeffsRows, int coeffsColumns) |
| | Constructs piecewise polynomial of specified breaks and interval local polynomial coefficients.
|
| |
| | PiecewisePolynomial (const PiecewisePolynomial &rhs) |
| | Copy constructor.
|
| |
| | PiecewisePolynomial (PiecewisePolynomial &&rhs) noexcept |
| | Move constructor.
|
| |
| virtual | ~PiecewisePolynomial () |
| | Destructor.
|
| |
| PiecewisePolynomial & | operator= (const PiecewisePolynomial &rhs) |
| | Copy assignment operator.
|
| |
| PiecewisePolynomial & | operator= (PiecewisePolynomial &&rhs) noexcept |
| | Move assignment operator.
|
| |
| void | resize (int pieces, int numLocalCoefficients) |
| | Resizes piecewise polynomial.
|
| |
| void | set (const T *pBreaks, const T *pCoeffs, int coeffsStride1, int coeffsRows, int coeffsColumns) |
| | Sets the piecewise polynomial breaks and interval local polynomial coefficients.
|
| |
| const T * | ptrBreaks () const |
| | Pointer to the piecewise polynomial breaks.
|
| |
| T * | ptrBreaks () |
| | Pointer to the piecewise polynomial breaks.
|
| |
| const T * | ptrPieceCoefficients (int piece) const |
| | The piecewise polynomial interval local polynomial coefficients.
|
| |
| T * | ptrPieceCoefficients (int piece) |
| | The piecewise polynomial interval local polynomial coefficients.
|
| |
| int | pieces () const |
| | Number of pieces.
|
| |
| int | numLocalCoefficients () const |
| | Number of local polynomial coefficients in each piece.
|
| |
| const T | evaluate (const T &src) const |
| | Evaluate piecewise polynomial.
|
| |
| void | evaluate (const T *pSrc, T *pDst, int count) const |
| | Evaluate piecewise polynomial.
|
| |
template<typename T>
class blo::PiecewisePolynomial< T >
Piecewise polynomial.
- Template Parameters
-
◆ PiecewisePolynomial() [1/5]
◆ PiecewisePolynomial() [2/5]
Constructs piecewise polynomial of specified size.
- Parameters
-
| pieces | Number of pieces. |
| numLocalCoefficients | Number of local polynomial coefficients in each piece. |
◆ PiecewisePolynomial() [3/5]
template<typename T >
| blo::PiecewisePolynomial< T >::PiecewisePolynomial |
( |
const T * |
pBreaks, |
|
|
const T * |
pCoeffs, |
|
|
int |
coeffsStride1, |
|
|
int |
coeffsRows, |
|
|
int |
coeffsColumns |
|
) |
| |
Constructs piecewise polynomial of specified breaks and interval local polynomial coefficients.
- Parameters
-
| pBreaks | Pointer to the 1D array of length coeffsRows + 1 with strictly increasing elements that represent the start and end of each of the coeffsRows intervals. |
| pCoeffs | Pointer to the 2D array with each row containing the coeffsColumns local polynomial coefficients, ordered in descending powers, corresponding to the the i-th interval [breaks[i], breaks[i + 1]]. |
| coeffsStride1 | Stride in bytes between the elements in the polynomial coefficients 2D array. |
| coeffsRows | Number of rows in the polynomial coefficients 2D array. |
| coeffsColumns | Number of columns in the polynomial coefficients 2D array. |
◆ PiecewisePolynomial() [4/5]
◆ PiecewisePolynomial() [5/5]
◆ ~PiecewisePolynomial()
◆ evaluate() [1/2]
Evaluate piecewise polynomial.
This function evaluates the piecewise polynomial at a given point.
- Parameters
-
| src | Point to evaluate the piecewise polynomial at. |
- Returns
- The piecewise polynomial evaluation.
◆ evaluate() [2/2]
Evaluate piecewise polynomial.
This function evaluates the piecewise polynomial at given points.
- Parameters
-
| pSrc | Pointer to the source points to evaluate the piecewise polynomial at. |
| pDst | Pointer to the destination piecewise polynomial evaluations. |
| count | The number of points and evaluations. |
◆ numLocalCoefficients()
Number of local polynomial coefficients in each piece.
- Returns
- Number of local polynomial coefficients in each piece.
◆ operator=() [1/2]
Copy assignment operator.
◆ operator=() [2/2]
Move assignment operator.
◆ pieces()
Number of pieces.
- Returns
- Number of pieces.
◆ ptrBreaks() [1/2]
Pointer to the piecewise polynomial breaks.
- Note
- The 1D array must contain strictly increasing elements that represent the start and end of each interval.
- Returns
- Pointer to the 1D array of length pieces() + 1.
◆ ptrBreaks() [2/2]
Pointer to the piecewise polynomial breaks.
- Note
- The 1D array must contain strictly increasing elements that represent the start and end of each interval.
- Returns
- Pointer to the 1D array of length pieces() + 1.
◆ ptrPieceCoefficients() [1/2]
The piecewise polynomial interval local polynomial coefficients.
- Note
- The 1D array must contain the local polynomial coefficients, ordered in descending powers, corresponding to the the i-th interval [breaks[i], breaks[i + 1]].
- Parameters
-
| piece | The i-th piece of the piecewise polynomial. |
- Returns
- Pointer to the 1D array of length numLocalCoefficients().
◆ ptrPieceCoefficients() [2/2]
The piecewise polynomial interval local polynomial coefficients.
- Note
- The 1D array must contain the local polynomial coefficients, ordered in descending powers, corresponding to the the i-th interval [breaks[i], breaks[i + 1]].
- Parameters
-
| piece | The i-th piece of the piecewise polynomial. |
- Returns
- Pointer to the 1D array of length numLocalCoefficients().
◆ resize()
Resizes piecewise polynomial.
- Parameters
-
| pieces | Number of pieces. |
| numLocalCoefficients | Number of local polynomial coefficients in each piece. |
◆ set()
template<typename T >
| void blo::PiecewisePolynomial< T >::set |
( |
const T * |
pBreaks, |
|
|
const T * |
pCoeffs, |
|
|
int |
coeffsStride1, |
|
|
int |
coeffsRows, |
|
|
int |
coeffsColumns |
|
) |
| |
Sets the piecewise polynomial breaks and interval local polynomial coefficients.
- Parameters
-
| pBreaks | Pointer to the 1D array of length coeffsRows + 1 with strictly increasing elements that represent the start and end of each of the coeffsRows intervals. |
| pCoeffs | Pointer to the 2D array with each row containing the coeffsColumns local polynomial coefficients, ordered in descending powers, corresponding to the the i-th interval [breaks[i], breaks[i + 1]]. |
| coeffsStride1 | Stride in bytes between the elements in the polynomial coefficients 2D array. |
| coeffsRows | Number of rows in the polynomial coefficients 2D array. |
| coeffsColumns | Number of columns in the polynomial coefficients 2D array. |
◆ PiecewisePolynomial< double >
◆ PiecewisePolynomial< float >
The documentation for this class was generated from the following file: