MATLAB: Does the LU function within MATLAB pivot for sparsity

luMATLABpivotsparsesparsityumfpack

Does the LU function within MATLAB pivot for sparsity?
The documention on the factorization of sparse matrices states that "the sparse LU factorization does not pivot for sparsity". However, the documentation for the LU function states the command
[L,U,P,Q] = lu(X,thresh)
uses a default pivot threshold value of "thresh = 0.1".

Best Answer

This bug has been fixed for Release 14 SP1 (R14SP1). For previous releases, please read below for any possible workarounds:
This has been verified as an error within the documentation on the factorization of sparse matrices within MATLAB.
The documentation should as follows:
The sparse LU factorization does not pivot for sparsity when using only three output arguments...