#include <NIntp.h>
Inherits NIntp< xType, yType >.
Inheritance diagram for NCube:

Public Member Functions | |
| EndCube< xType, yType > * | copyArrayD (EndCube< xType, yType > *array) const |
| virtual yType * | copyArrayY (enum NIntp< xType, yType >::VTYPE vType, yType *array) const |
| const EndCube< xType, yType > * | getArrayD (void) const |
| virtual int | getCount (enum NIntp< xType, yType >::VTYPE vType) const |
| NCube (const xType *const *arXn, const yType *arYn, const int *arNn, int nDimen, const EndCube< xType, yType > *arDn) | |
| NCube (const xType *const *arXn, const yType *arYn, const int *arNn, int nDimen) | |
| NCube (const NIntp< xType, yType > &ni) | |
| NCube (const NCube< xType, yType > &ni) | |
| NCube< xType, yType > * | reduce (NCube< xType, yType > *&nc, yType *&arYm, xType x0) |
| ~NCube (void) | |
This class implements arrays of single-dimension cubic spline interpolation (calc::Cube) objects for multi-dimensional interpolation tables. All of the data capabilities and restrictions inherent in cubic spline (calc::Cube) objects carry through to multi-dimensional cubic splines.
The declaration typename <xType> specifies the form of independent variables used in interpolation calculations. The declaration typename <yType> specifies the form of solution variables used in interpolation calculations. In general, the <yType> variables should be the equal or superset of the <xType> variables.
Copy constructor initializes an n-Dimension spline interpolation object from the specified existing interpolation object.
| ni | a reference to an n-Dimension spline interpolation object |
Copy constructor initializes an n-Dimension spline interpolation object from the specified existing interpolation object.
| ni | a reference to an n-Dimension spline interpolation object |
| ~NCube | ( | void | ) |
Destructor frees allocated memory.
| NCube | ( | const xType *const * | arXn, | |
| const yType * | arYn, | |||
| const int * | arNn, | |||
| int | nDimen | |||
| ) |
Constructor initializes an n-Dimension cubic spline interpolation object using the natural spline requirement.
| arXn | a pointer to an n-Dimension independent value interpolation array (x units) | |
| arYn | a pointer to an n-Dimension dependent value interpolation array (y units) | |
| arNn | a pointer to an array containing data counts by dimension for the specified arrays arXn and arYn | |
| nDimen | number of dimensions |
| NCube | ( | const xType *const * | arXn, | |
| const yType * | arYn, | |||
| const int * | arNn, | |||
| int | nDimen, | |||
| const EndCube< xType, yType > * | arDn | |||
| ) |
Constructor initializes an n-Dimension cubic spline interpolation object with the specified derivative identifier object which specifies derivative values of the first and last data points in the spline.
| arXn | a pointer to an n-Dimension independent value interpolation array (x units) | |
| arYn | a pointer to an n-Dimension dependent value interpolation array (y units) | |
| arNn | a pointer to an array containing data counts by dimension for the specified arrays arXn and arYn | |
| nDimen | number of dimensions | |
| arDn | a pointer to an n-Dimension derivative identifier object array |
| calc::EndCube< xType, yType > * copyArrayD | ( | EndCube< xType, yType > * | array | ) | const |
Function copies the object's array which contains derivative identifier objects for each dimension to the specified pointer.
| array | a pointer to a copy of the object's derivative identifier array |
Virtual function copies values contained in an identified object array to the specified pointer.
| vType | variable index indentifying the type of data | |
| array | a pointer to a copy of the object's data array (varying units) |
| const EndCube<xType,yType>* getArrayD | ( | void | ) | const |
Function returns a pointer to the object's array which contains derivative identifier objects for each dimension.
Virtual function determines the number of values contained in the object's identified array.
| vType | variable index indentifying the type of data |
| calc::NCube< xType, yType > * reduce | ( | NCube< xType, yType > *& | nc, | |
| yType *& | arYm, | |||
| xType | x0 | |||
| ) |
Function reduces the object's interpolation table by one dimension.
| x0 | interpolation value to reduce the first dimension at (x units) | |
| nc | a pointer reference to an interpolation object to store the calculated data in | |
| arYm | a pointer reference to the calculated reduced dimension dependent interpolation array evaluated at x0 (y units) |
1.4.7