new function asMatrixRows asMatrixCols