solve a linear sparse (s.p.d.) system given the Cholesky factors
[x] = taucs_chsolve(C_ptr, b [, A])
: :b a real column vector or a matrix (multiple rhs) : :x a real column vector or a matrix in case of multiple rhs ( x(:,i)
is solution of A x(:,i) = b(:,i))
:
This function must be used in conjonction with taucs_chfact which computes the Cholesky factorization of a sparse real s.p.d. matrix. When the matrix A is provided, one iterative refinement step is done (the refined solution is accepted if it improves the 2-norm of the residual Ax-b).
Like in taucs_chfact the matrix A may be provided either in its complete form (that is with the lower triangle also) or only with its upper triangle.
see the example section of taucs_chfact