remove overridden WeightMatrix method

release/4.3a0
Varun Agrawal 2023-12-05 14:13:11 -05:00
parent bc1b949f8b
commit 7799fd5a6a
2 changed files with 0 additions and 19 deletions

View File

@ -59,15 +59,6 @@ Weights Chebyshev2::CalculateWeights(size_t N, double x, double a, double b) {
return weights / d; return weights / d;
} }
Matrix Chebyshev2::WeightMatrix(size_t N, const Vector& X, double a, double b) {
// Chebyshev points go from 0 to N, hence N+1 points.
Matrix W(X.size(), N);
for (int i = 0; i < X.size(); i++) {
W.row(i) = CalculateWeights(N, X(i), a, b);
}
return W;
}
Weights Chebyshev2::DerivativeWeights(size_t N, double x, double a, double b) { Weights Chebyshev2::DerivativeWeights(size_t N, double x, double a, double b) {
// Allocate space for weights // Allocate space for weights
Weights weightDerivatives(N); Weights weightDerivatives(N);

View File

@ -97,16 +97,6 @@ class GTSAM_EXPORT Chebyshev2 : public Basis<Chebyshev2> {
static Weights CalculateWeights(size_t N, double x, double a = -1, static Weights CalculateWeights(size_t N, double x, double a = -1,
double b = 1); double b = 1);
/**
* Calculate weights for all x in vector X.
* Returns M*N matrix where M is the size of the vector X,
* and N is the number of basis functions.
*
* Overriden for Chebyshev2.
*/
static Matrix WeightMatrix(size_t N, const Vector& X, double a = -1,
double b = 1);
/** /**
* Evaluate derivative of barycentric weights. * Evaluate derivative of barycentric weights.
* This is easy and efficient via the DifferentiationMatrix. * This is easy and efficient via the DifferentiationMatrix.