Skip to content

ilu

sparse · scripts/sparse/ilu.m

[L, U] = ilu (A)
[L, U, P] = ilu (A)
W = ilu (A)
[___] = ilu (A, options)

Incomplete LU factorization of the sparse square matrix A.  The struct
options may contain
   type     "nofill" (default, ILU(0)), "crout" or "ilutp"
   droptol  drop tolerance for "crout" and "ilutp" (default 0)
   milu     "off" (default), "row" or "col": modified ILU
   udiag    1 replaces zero diagonal entries of U by droptol (ilutp only)
   thresh   pivot threshold of "ilutp" in [0, 1] (default 1)
L is unit lower triangular, U upper triangular.  With "ilutp", the third
output P is the permutation with L*U ~ P*A (milu "off"/"col") or
L*U ~ A*P (milu "row").  For "nofill" and "crout", P is speye (n).
With one output the result is L + U - speye (n).