def test_create_from_rows(self, M): rows = list(M) assert M == Mat.from_rows(rows)
def test_fromrows_sqr(): M1 = Mat([1, 2], [3, 4]) M2 = Mat.from_rows([[1, 2], [3, 4]]) assert M1 == M2