Gauss elimination with complete pivoting

This function calculate Gauss elimination with complete pivoting

You are now following this Submission

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://www.mathworks.com/matlabcentral/fileexchange/13451-gauss-elimination-with-complete-pivoting), 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.2.0.0

Some errors corrected

1.0.0.0