From 0c824bd4473f946134cfbaaaf18078a1f8e8db80 Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Mon, 21 Oct 2024 22:33:56 -0700 Subject: [PATCH] [wpimath] Take finite difference stencil points by const ref (#7238) --- wpimath/src/main/native/include/frc/filter/LinearFilter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpimath/src/main/native/include/frc/filter/LinearFilter.h b/wpimath/src/main/native/include/frc/filter/LinearFilter.h index 52eec9de2b2..24a7283cc3f 100644 --- a/wpimath/src/main/native/include/frc/filter/LinearFilter.h +++ b/wpimath/src/main/native/include/frc/filter/LinearFilter.h @@ -187,7 +187,7 @@ class LinearFilter { */ template static LinearFilter FiniteDifference( - const wpi::array stencil, units::second_t period) { + const wpi::array& stencil, units::second_t period) { // See // https://en.wikipedia.org/wiki/Finite_difference_coefficient#Arbitrary_stencil_points //