ENH: Writing out sample and full patch matrices.