LUstepwise(A)

This function provides each step of LU decomposition with partial pivoting.
30 Downloads
Updated 12 Jan 2018

View License

This function provides each step of LU decomposition with partial pivoting.
Usage ... [ Lk, Uk, Pk ] = LUstepwise(A);

You have to specify a square matrix A in advance.
Lk{k}, Uk{k}, Pk{k} denote k-th step of L, U, P, respectively,
in the LU decomposition.

Cite As

Takatomi Miyata (2026). LUstepwise(A) (https://se.mathworks.com/matlabcentral/fileexchange/65662-lustepwise-a), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.1.0

<change log>
v1.0.1
Fixed the following bug regarding partial pivoting:
--- Erratum ---
l.88
(error) [ ~ , k ] = max(Atmp(i:end,i));
(correct) [ ~ , k ] = max(abs(Atmp(i:end,i)));