LUstepwise(A)

This function provides each step of LU decomposition with partial pivoting.

You are now following this Submission

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://www.mathworks.com/matlabcentral/fileexchange/65662-lustepwise-a), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
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)));