Doxygen
1.9.1
|
Cache that holds the derivatives of 1D Lagrange polynomials. Uses the same interface as CacheLagrange. . More...
#include <tsgCacheLagrange.hpp>
Public Member Functions | |
CacheLagrangeDerivative (int num_dimensions, const std::vector< int > &max_levels, const OneDimensionalWrapper &rule, const double x[]) | |
Constructor that takes into account a single canonical point x. More... | |
~CacheLagrangeDerivative ()=default | |
Destructor, clear all used data. | |
T | getLagrangeDerivative (int dimension, int level, int local) const |
Return the Lagrange derivative cache for given dimension, level and offset local to the level. | |
Static Public Member Functions | |
static void | cacheDerivativeLevel (int level, double x, const OneDimensionalWrapper &rule, T *cc) |
Computes the derivatives of all Lagrange polynomials for the given level at the given x. | |
Protected Attributes | |
std::vector< std::vector< T > > | cache |
See CacheLagrange::cache. | |
std::vector< int > | offsets |
See CacheLagrange::offsets. | |
Cache that holds the derivatives of 1D Lagrange polynomials. Uses the same interface as CacheLagrange.
.
|
inline |
Constructor that takes into account a single canonical point x.
The cache is constructed for each dimension and each level up to max_levels, the derivatives of the Lagrange polynomials are computed in two passes resulting in O(n) operations.