Gauss elimination with complete pivoting

This function calculate Gauss elimination with complete pivoting
10.5K Downloads
Updated 23 Dec 2011

View License

This function calculate Gauss elimination with complete pivoting.

G)aussian (E)limination (C)omplete (P)ivoting
Input
A nxn matrix
Output
L = Lower triangular matrix with ones as diagonals
U = Upper triangular matrix
P and Q permutations matrices so that P*A*Q = L*U

examples :
[L U] = gecp(A);
[L U P] = gecp(A);
[L U P Q] = gecp(A);

Cite As

Nickolas Cheilakos (2026). Gauss elimination with complete pivoting (https://ch.mathworks.com/matlabcentral/fileexchange/13451-gauss-elimination-with-complete-pivoting), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R11
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.2.0.0

Some errors corrected

1.0.0.0