Back to Sparse Matrices
ilu
Incomplete LU factorization
Syntax
[L, U] = ilu(A) [L, U] = ilu(A, setup)
Description
Computes the incomplete LU factorization of sparse matrix A, suitable for use as a preconditioner in iterative solvers.
Parameters
| Name | Description |
|---|---|
| A | Sparse square matrix |
| setup(optional) | Options struct with type and droptol |
Returns
[L, U] incomplete factors
Examples
Try It
>> [L, U] = ilu(speye(5))