I have read the document and the example QP, but I’m not quite sure whether the Hessian matrix(P matrix) is setup as upper-triangular matrix or lower-triangular matrix, it seems that it is set up as upper-triangular matrix, according to the data filled in row indices P_i and column pointers P_p. Someone please tell me which one is true.

Another question, are all matrices in column-major form or row-major form?

the link is below