<< sp_cgs Sparse functions sp_lu >>

sci_getfem >> sci_getfem > Sparse functions > sp_lu

sp_lu

Performs a LU decomposition on a sparse matrix

Calling Sequence

[L[,U[,P]]] = sp_lu(M[,alpha])

Parameters

M

the real sparse matrix on which we will perform the LU decomposition

alpha

a coefficient used in the partial pivoting (default value: 1).

partial pivoting and Markowitz criterion:

|a[p][k]| >= alpha * max_i |a[i][k]|

L

the L sparse matrix from the LU decomposition

U

the U sparse matrix from the LU decomposition

P

The permutation matrix such that L*U = P*A

Description

Performs a LU decomposition on a sparse matrix

Example

See Also

Authors


Report an issue
<< sp_cgs Sparse functions sp_lu >>