-matrix multiplication and transpose