I want to do the equivalent to adding elements in a python list recursively in Numpy, As in the following code
matrix = open(\'workfile\', \'w\') A = [] for
You need to pass the array, A, to Numpy.
matrix = open('workfile', 'w') A = np.array([]) for row in matrix: A = numpy.append(A, row) print A
However, loading from the files directly is probably a nicer solution.