From 7799fd5a6a8f5059e09cb4173fb542b03c56894e Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Tue, 5 Dec 2023 14:13:11 -0500 Subject: [PATCH] remove overridden WeightMatrix method --- gtsam/basis/Chebyshev2.cpp | 9 --------- gtsam/basis/Chebyshev2.h | 10 ---------- 2 files changed, 19 deletions(-) diff --git a/gtsam/basis/Chebyshev2.cpp b/gtsam/basis/Chebyshev2.cpp index c37fa9f6b..63fca64cc 100644 --- a/gtsam/basis/Chebyshev2.cpp +++ b/gtsam/basis/Chebyshev2.cpp @@ -59,15 +59,6 @@ Weights Chebyshev2::CalculateWeights(size_t N, double x, double a, double b) { 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) { // Allocate space for weights Weights weightDerivatives(N); diff --git a/gtsam/basis/Chebyshev2.h b/gtsam/basis/Chebyshev2.h index 6d0bc7f6b..849a51104 100644 --- a/gtsam/basis/Chebyshev2.h +++ b/gtsam/basis/Chebyshev2.h @@ -97,16 +97,6 @@ class GTSAM_EXPORT Chebyshev2 : public Basis { static Weights CalculateWeights(size_t N, double x, double a = -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. * This is easy and efficient via the DifferentiationMatrix.