copy the original matrix into out if obtained from file system