[Numpy-discussion] memory leak using numpy and cvxopt
Tillmann Falck
tillmann.falck at gmail.com
Fri Jul 2 08:56:47 EDT 2010
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
More information about the NumPy-Discussion
mailing list