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
def CreateMatricies(path): A = Matrix.fromFile(path.replace("Y", "A")) b = Matrix.fromFile(path.replace("Y", "b")) PrintLoaded(A, b) return A, b