Lu decomposition method matlab code. Pivoting with LU is what is used the most often.