Matrix operations, especially for generator matrices or check matrices