Gauss elimination with complete pivoting
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
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: LU factorization with complete pivoting., Gauss elimination using pivot element
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
