Closed D-teg closed 5 months ago
my version is suitesparse-4.0.2-10.el7.x86_64.
When you created the matrix, you gave it an "stype" of zero, which means "unsymmetric, with both lower and triangular parts stored". That is a parameter in cholmod_allocate_sparse.
If you ask for a Cholesky factorization of such a matrix, I factorize A*A'. I use that feature for handling linear programming problems.
if you want to factorize and solve Ax=b and if A is symmetric, you have to use a different A->stype.
Thank you for your suggestion, I misunderstood the meaning of this parameter.Thanks again. : )
Hello, Professor Tim Davis. I'm trying to solve a liner system for Ax = b, where A is a positively definite sparse matrix. I write the following code,and the result x is abnormal [1,1,1,1]. When AAx = b, the result holds. I should have an error in the call of the function and I would like to seek help with this. Looking forward for your message.