Removing Print() and Write() member functions from Matrix/DistMatrix and making them functions in the elem namespace