Skip to content

Commit

Permalink
[filter] reorder internal members (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoisCarouge authored Nov 2, 2022
1 parent b1a3a81 commit cbb7e33
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions include/fcarouge/internal/kalman.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ struct kalman<State, Output, void, Divide, pack<UpdateTypes...>,
output z{zero_v<output>};
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
Expand Down Expand Up @@ -146,9 +148,6 @@ struct kalman<State, Output, void, Divide, pack<UpdateTypes...>,
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,
Expand Down Expand Up @@ -230,6 +229,8 @@ struct kalman<State, Output, Input, Divide, pack<UpdateTypes...>,
input u{zero_v<input>};
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
Expand Down Expand Up @@ -284,9 +285,6 @@ struct kalman<State, Output, Input, Divide, pack<UpdateTypes...>,
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,
Expand Down

0 comments on commit cbb7e33

Please sign in to comment.