Skip to content

Commit

Permalink
Chebyshev2::WeightMatrix to take only N points
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Nov 6, 2023
1 parent 8312a71 commit fb49579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gtsam/basis/Chebyshev2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit fb49579

Please sign in to comment.