From fb4957998f4856c9814bb478d4d121f05b82c279 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Mon, 6 Nov 2023 08:21:35 -0500 Subject: [PATCH] Chebyshev2::WeightMatrix to take only N points --- gtsam/basis/Chebyshev2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/basis/Chebyshev2.cpp b/gtsam/basis/Chebyshev2.cpp index 5cfc380be8..c37fa9f6b7 100644 --- a/gtsam/basis/Chebyshev2.cpp +++ b/gtsam/basis/Chebyshev2.cpp @@ -61,7 +61,7 @@ Weights Chebyshev2::CalculateWeights(size_t N, double x, double a, double b) { 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 + 1); + Matrix W(X.size(), N); for (int i = 0; i < X.size(); i++) { W.row(i) = CalculateWeights(N, X(i), a, b); }