I'm building a sparse matrix through the mex function. Both the Ir and Jc properties are appointed in the mex function A. Later, this sparse matrix is returned to matlab, and is further transferred to another mex function B together with other parameters to assemble a large matrix.
For one test case, part of the Jc property of the created sparse matrix in the mex function A is as follows:
But when this sparse matrix is further transferred to mex function B, this part is altered and is as follows:
Actually, after this sparse matrix is established, I did no alternation about it. I want to know what may case this.