/* Programming template for Midterm Part 1 Question 2 Please complete the routine matinv below with code to compute the inverse of matrix A so that the resulting test in main produces the message "Correct! Passed the rounding error test!" You may use plufact and plusolve in your program but note that plufact overwrites the input A with the LU factorization. You may add additional code for debugging and to modularize your computation; however, there is no need to do so. If you change the matrix size from N=256 to something smaller for debugging, please change it back before submitting. */ #include #include #include #include #include #include // Compute the Frobenius matrix norm. double matfrobnorm(int n,double A[n][n]){ double r=0; for(int i=0;i=0;i--){ // Ux=y x[i]=y[i]; for(int j=i+1;j