Runtime choosing of template specializations using compile-time lookup-tables. Compile all states of a template function, but execute the optimal one at runtime.
Why do you think that https://github.com/FrancoisCarouge/Kalman is a good alternative to SpeciaLUT