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