Fixed reading input in MatrixMultGen3.