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