Skip to content

Commit

Permalink
[wpimath] Take finite difference stencil points by const ref (#7238)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Oct 22, 2024
1 parent ed18b41 commit 0c824bd
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 0c824bd

Please sign in to comment.