Question: (a) Write a function that solves a linear system using Gauss-Jordan Elimination with partial pivoting. Name the function lastname_gaussjordan_solve. It should take as input the

(a) Write a function that solves a linear system using Gauss-Jordan Elimination with partial pivoting. Name the function lastname_gaussjordan_solve. It should take as input the matrix A and RHS vector b, and provide as output a permutation vector p, the nal solution to the linear system :3, and a vector (1 with the diagonal values after Gauss-Jordan elimination. Do not explicitly create the elimination or permutation matrices. Write this function modifying the LU factorization with partial pivoting code discussed in class. (1)) Show that the dominant term in the oating point operation count is n3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
