sanurielf / kvxopt

KVXOPT -- Python Software for Convex Optimization containing more wrappers suite-sparse.
Other
10 stars 1 forks source link

Segfault when linearly indexing a sparse matrix #4

Closed cuihantao closed 2 years ago

cuihantao commented 2 years ago

MWE:

from kvxopt import spdiag, matrix

c = spdiag(matrix(range(1,1000)))
c[0:10000:30]

Segfaults on Python 3.9.7 on Ubuntu 20.04. KVXOPT version is 1.2.7.3. The code works fine with CVXOPT 1.2.7.

sanurielf commented 2 years ago

Let me take a look. The same happens in OSx and Python 3.9.9

sanurielf commented 2 years ago

Hi,

Kvxopt 1.2.7.4 (just released) includes the fix.