Hi,
I tried to understand csc-format used in the C interface for the P and A matrix. And with all my understanding I have right now, I think that there is a bug in the documentation.
The documentation claims, that the matrix [[4, 1], [1, 2]] is represented by:
c_float P_x[3] = {4.0, 1.0, 2.0, };
c_int P_nnz = 3;
c_int P_i[3] = {0, 0, 1, };
c_int P_p[3] = {0, 1, 3, };
But in this representation P_x has less elements than nonzero values exists in the matrix.
I think it should be like the manual for v0.3:
c_float P_x[4] = {4.00, 1.00, 1.00, 2.00, };
c_int P_nnz = 4;
c_int P_i[4] = {0, 1, 0, 1, };
c_int P_p[3] = {0, 2, 4, };
Am I wrong?
Best regards
Ludwig