From http://cvxopt.org/userguide/matrices.html#sparse-matrices
cvxopt.spmatrix(x, I, J[, size[, tc]])
looks like scipy.sparse
coo_matrix((data, (i, j)), [shape=(M, N)])
I assume that if Ais a matrix in the format coo, then
cvxopt.spmatrix(A.data, A.row, A.col, A.shape)
will work. (I do not have cvxoptto verify this.)
source
share