FUNCTION REFERENCE
ichol
Incomplete Cholesky factorization of a sparse matrix.
Incomplete Cholesky factorization of a sparse matrix.
Syntax
L = ichol(A)Syntax
L = ichol(A, opts)Returns a sparse lower triangular L with L*L' close to A, using only the lower triangle of A. opts fields: type 'nofill' (default, the pattern of tril(A)) or 'ict' (fill kept above droptol*norm(A(j:end,j),1)); droptol (default 0); michol 'off' (default) or 'on' (dropped values go to the diagonal so that L*L'*e equals A*e); diagcomp alpha (factors A + alpha*diag(diag(A))); shape 'lower' (default) or 'upper' (returns R with R'*R close to A, using the upper triangle). A nonpositive pivot is an error. Use L as the preconditioner of pcg: pcg(A,b,tol,maxit,L,L').
Example
A = gallery('poisson',30); L = ichol(A); x = pcg(A, ones(900,1), 1e-8, 200, L, L');Differences from MATLAB: none known.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.