Naive Gaussian Elimination vs Scaled Partial Pivoting

593 Views Asked by At

Just a quick question. Say I was to write a function in Matlab that performs Naive Gaussian Elimination for solving Ax=b and another function in Matlab that performs Scaled Partial Pivoting. My question is would the code for the back substitution change part of solving for $x_1$,$x_2$,etc or would it would be exactly the same for both functions? My hunch is that the code would be exactly the same for the back substitution part by I'm not entirely sure. Any help would be much appreciated.