FUNCTION REFERENCE

ilu

Incomplete LU factorization of a sparse matrix.

Incomplete LU factorization of a sparse matrix.

Syntax

W = ilu(A)

Syntax

[L, U] = ilu(A, setup)

Syntax

[L, U, P] = ilu(A, setup)

L is unit lower triangular and U upper triangular with L*U close to A; one output gives W = L+U-speye(n). setup fields: type 'nofill' (default, the pattern of A), 'crout' or 'ilutp' (fill kept above droptol times the 2-norm of the column of A); droptol (default 0, a complete factorization); milu 'off' (default), 'row' or 'col' (dropped values go to the diagonal of U so that row or column sums match A); udiag 1 replaces a zero pivot of 'ilutp' by the local drop tolerance; thresh (default 1) is the 'ilutp' pivot threshold: the diagonal is kept when it is at least thresh times the largest candidate. For 'ilutp', P*A is close to L*U; with two outputs L is returned as P'*L. A zero pivot is an error.

Example

A = gallery('tridiag',100); [L, U] = ilu(A); x = gmres(A, ones(100,1), 20, 1e-10, 10, L, U);

Differences from MATLAB: milu 'row' is not supported with type 'ilutp'.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.