copyMatrixByDim1