Matrix.constructMatrix()'s first version.