Chebyshev2::WeightMatrix to take only N points

release/4.3a0
Varun Agrawal 2023-11-06 08:21:35 -05:00
parent 8312a71af4
commit fb4957998f
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}