/* Programming template for Midterm Part 1 Question 3 Please complete the four routines matmatAB, matmatATB, matmatABT and matmatATBT to multiply the matrices A and B and their transposes such that the four resulting tests in main produce the messages "Correct! matmatXXX passed the rounding error test!" in every case. You may add additional code for debugging and to modularize your computation; however, there is no need to do so. */ #include #include #include #include #include #include // Compute the distance ||A-B||_frob between to matrices. double distfrob(int m,int n,double A[m][n],double B[m][n]){ double r=0; for(int i=0;i