29 using Parameters = Eigen::Matrix<double, -1, 1>;
30 using DiffMatrix = Eigen::Matrix<double, -1, -1>;
43 for (
size_t i = 1, n = 1; i < N; i++) {
66 return CalculateWeights(N, x);
74 DiffMatrix D = DiffMatrix::Zero(N, N);
76 for (
size_t i = 1; i < N; i += 2) {
93 return CalculateWeights(N, x) * DifferentiationMatrix(N);
107 return CalculateWeights(N, x, a, b) * DifferentiationMatrix(N);
Compute an interpolating basis.
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
CRTP Base class for function bases.
Definition: Basis.h:95
Fourier basis.
Definition: Fourier.h:27
static DiffMatrix DifferentiationMatrix(size_t N)
Compute D = differentiation matrix.
Definition: Fourier.h:73
static Weights DerivativeWeights(size_t N, double x)
Get weights at a given x that calculate the derivative.
Definition: Fourier.h:92
static Weights CalculateWeights(size_t N, double x)
Evaluate Real Fourier Weights of size N in interval [a, b], e.g.
Definition: Fourier.h:40
static Weights DerivativeWeights(size_t N, double x, double a, double b)
Get derivative weights at a given x that calculate the derivative, in the interval [a,...
Definition: Fourier.h:106
static Weights CalculateWeights(size_t N, double x, double a, double b)
Evaluate Real Fourier Weights of size N in interval [a, b], e.g.
Definition: Fourier.h:64