equal_byname function

Compare two matrices "by name" for equality