Sorry, that code was wrong; here's the corrected code.
import cvxopt as C
N = 100000
G = C.sparse([C.spdiag(C.matrix(1., (N,1))), C.spdiag(C.matrix(-1., (N,1)))])
Strangely, these three lines of code alone seem to work perfectly
fine; but they break when part of my bigger code. I'm not sure if this
is due to memory issues or not.
Anil