template class mrpt::math::detail::MatrixWrapper

This template is a trick to switch the type of a variable using a boolean variable in the template.

It’s easy to extend its functionality to several types, using a unsigned char instead of a bool.