All of the elementary row and column operations are applied to both underlying matrices. Reads are done from the first matrix. Writes are not allowed (except those that are side effects of elementary matrix operations).