Skip to content

Commit

Permalink
[wpimath] Take finite difference stencil points by const ref
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul committed Oct 21, 2024
1 parent 5ac132f commit 37a47ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wpimath/src/main/native/include/frc/filter/LinearFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class LinearFilter {
*/
template <int Derivative, int Samples>
static LinearFilter<T> FiniteDifference(
const wpi::array<int, Samples> stencil, units::second_t period) {
const wpi::array<int, Samples>& stencil, units::second_t period) {
// See
// https://en.wikipedia.org/wiki/Finite_difference_coefficient#Arbitrary_stencil_points
//
Expand Down

0 comments on commit 37a47ee

Please sign in to comment.