It's very little work to create a Method class with a static method _mat_inv_mul() and have both subclass from it. It is even less work to make this method a standalone function. I'd rather not introduce duplicate code into the code base.