Generate larger matrices using existing smaller matrices