lgmath
lgmath copied to clipboard
Using `Eigen::Ref` for `const Eigen &` function inputs
We really should change functions that accept const Eigen::Type &
to use const Eigen::Ref<Eigen::Type>&
as recommended by Eigen documentation.
This unifies Eigen::Matrix
and Eigen::Map
, to avoid an additional copy.