From cbb7e33b1be0e936602ad2f771db701a8f390fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Carouge?= Date: Tue, 1 Nov 2022 20:36:15 -0700 Subject: [PATCH] [filter] reorder internal members (#201) --- include/fcarouge/internal/kalman.hpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/include/fcarouge/internal/kalman.hpp b/include/fcarouge/internal/kalman.hpp index 24094a77e..70283a858 100644 --- a/include/fcarouge/internal/kalman.hpp +++ b/include/fcarouge/internal/kalman.hpp @@ -98,6 +98,8 @@ struct kalman, output z{zero_v}; update_types update_arguments{}; prediction_types prediction_arguments{}; + transpose t{}; + Divide divide{}; //! @todo Should we pass through the reference to the state x or have the user //! access it through filter.x() when needed? Where does the @@ -146,9 +148,6 @@ struct kalman, return h * state_x; }}; - transpose t; - Divide divide; - //! @todo Do we want to store i - k * h in a temporary result for reuse? Or //! does the compiler/linker do it for us? //! @todo Do we want to support extended custom y = output_difference(z, @@ -230,6 +229,8 @@ struct kalman, input u{zero_v}; update_types update_arguments{}; prediction_types prediction_arguments{}; + transpose t{}; + Divide divide{}; //! @todo Should we pass through the reference to the state x or have the user //! access it through filter.x() when needed? Where does the @@ -284,9 +285,6 @@ struct kalman, return h * state_x; }}; - transpose t; - Divide divide; - //! @todo Do we want to store i - k * h in a temporary result for reuse? Or //! does the compiler/linker do it for us? //! @todo Do we want to support extended custom y = output_difference(z,