Skip to content

Commit

Permalink
fix Chebyshev2 ParameterMatrix to take N values
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Nov 6, 2023
1 parent fb49579 commit 10f75a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gtsam/basis/Chebyshev2.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class GTSAM_EXPORT Chebyshev2 : public Basis<Chebyshev2> {

/// Return a zero initialized Parameter matrix.
static Parameters ParameterMatrix(size_t N) {
return Parameters::Zero(N + 1);
return Parameters::Zero(N);
}

/**
Expand Down

0 comments on commit 10f75a0

Please sign in to comment.