memory leak using numpy and cvxopt
Hi all, I am hitting a memory leak with the combination of numpy and cvxopt.matrix. As I am not where it occurs, I am cross posting. On my machine (Fedora 13, x86_64) this example quickly eats up all my memory. ----------- from cvxopt import matrix import numpy as np N = 2000 X = np.ones((N, N)) Y = matrix(0.0, (N, N)) while True: Y[:N, :N] = X ----------- I don't hit the leak if copy blocks of 1-d arrays. Regards, Tillmann
Fri, 02 Jul 2010 14:56:47 +0200, Tillmann Falck wrote:
I am hitting a memory leak with the combination of numpy and cvxopt.matrix. As I am not where it occurs, I am cross posting.
Probably a bug in cvxopt, as also the following leaks memory: -------------------------------- from cvxopt import matrix N = 2000 X = [0]*N Y = matrix(0.0, (N, N)) while True: Y[:N, :1] = X -------------------------------- -- Pauli Virtanen
participants (2)
-
Pauli Virtanen
-
Tillmann Falck