Exemplo n.º 1
0
def test_Matrix_toFile_fromFile():
  matrix = Matrix([[1, 2.5],
                   [4, 5.5],
                  ])
  matrix.toFile("output.txt")
  newMatrix = Matrix.fromFile("output.txt")
  assert newMatrix == matrix
Exemplo n.º 2
0
def CreateMatricies(path):
  A = Matrix.fromFile(path.replace("Y", "A"))
  b = Matrix.fromFile(path.replace("Y", "b"))
  PrintLoaded(A, b)
  return A, b