int vsip_cholsol_f(const vsip_chol_f *chold, const vsip_mview_f *a); int vsip_ccholsol_f(const vsip_cchol_f *chold, const vsip_cmview_f *a);
This function solves linear systems of equations using a previously computed Cholesky decomposition. It solves the system
where
is a symmetric positive definite matrix that has been decomposed using vsip_dchold_p .
The function uses the Cholesky decomposition
(or
,
) to efficiently solve the linear system by
performing forward and backward substitution on the triangular factors.
const vsip_dchol_p* chold: Pointer to the Cholesky decomposition object containing a previously computed decomposition.
const vsip_dmview_p* a: On input, contains the right-hand side matrix
. On output, contains the solution
matrix
. The matrix should have dimensions
where
is
and
is the number of right-hand sides.
Returns 0 on success.
Returns a non-zero value on error
The Cholesky decomposition must have been previously computed using vsip_dchold_p .