`Mat` is not a very good name for the type parameter because there is a trait named `Mat`.
In the rest of the library, matrix-like type parameters are noted `M`.