08-Feb-2019 20:55:13 QR_SOLVE_TEST MATLAB version Test QR_SOLVE. BACKSLASH_SOLVE_TEST MATLAB's backslash operator x=A\b solves a linear system A*x = b in the least squares sense. Compare a tabulated solution X1 to the backslash result X2. Number of problems = 6 Index M N ||B|| ||X1 - X2|| ||X1|| ||X2|| ||R1|| ||R2|| 1 5 3 6.205 2.861e-08 5.461 5.461 1.075 1.075 2 6 3 537.6 5.416e-05 194.8 194.8 5.222 5.222 3 5 3 40.37 5.092e-08 10.84 10.84 5.477e-07 1.066e-14 4 3 5 232.1 2.481e-14 7.416 7.416 0 6.703e-14 5 10 10 1 3358 1.534e+07 1.534e+07 7.276e-11 4.175e-10 6 10 10 1 5.332e-16 1 1 4.974e-16 1.185e-16 NORMAL_SOLVE_TEST NORMAL_SOLVE is a function with a simple interface which solves a linear system A*x = b in the least squares sense. Compare a tabulated solution X1 to the NORMAL_SOLVE result X2. NORMAL_SOLVE cannot be applied when N < M, or if the matrix does not have full column rank. Number of problems = 6 Index M N ||B|| ||X1 - X2|| ||X1|| ||X2|| ||R1|| ||R2|| 1 5 3 6.205 2.861e-08 5.461 5.461 1.075 1.075 2 6 3 537.6 5.416e-05 194.8 194.8 5.222 5.222 3 5 3 40.37 ------------ 10.84 ------------ 5.477e-07 ------------ 4 3 5 232.1 ------------ 7.416 ------------ 0 ------------ 5 10 10 1 ------------ 1.534e+07 ------------ 7.276e-11 ------------ 6 10 10 1 5.319e-16 1 1 4.974e-16 1.711e-16 QR_FACTOR_SOLVE_TEST QR_FACTOR_SOLVE is a function with a simple interface which solves a linear system A*x = b in the least squares sense. Compare a tabulated solution X1 to the QR_SOLVE result X2. Number of problems = 6 Index M N ||B|| ||X1 - X2|| ||X1|| ||X2|| ||R1|| ||R2|| 1 5 3 6.205 2.861e-08 5.461 5.461 1.075 1.075 2 6 3 537.6 5.416e-05 194.8 194.8 5.222 5.222 3 5 3 40.37 25.7 10.84 27.89 5.477e-07 2.842e-14 4 3 5 232.1 10.37 7.416 12.75 0 9.073e-14 5 10 10 1 2352 1.534e+07 1.534e+07 7.276e-11 1.044e-09 6 10 10 1 6.059e-16 1 1 4.974e-16 3.78e-16 SVD_SOLVE_TEST SVD_SOLVE is a function with a simple interface which solves a linear system A*x = b in the least squares sense. Compare a tabulated solution X1 to the SVD_SOLVE result X2. Number of problems = 6 Index M N ||B|| ||X1 - X2|| ||X1|| ||X2|| ||R1|| ||R2|| 1 5 3 6.205 2.861e-08 5.461 5.461 1.075 1.075 2 6 3 537.6 5.416e-05 194.8 194.8 5.222 5.222 3 5 3 40.37 5.092e-08 10.84 10.84 5.477e-07 2.487e-14 4 3 5 232.1 1.146e-13 7.416 7.416 0 1.316e-13 5 10 10 1 1958 1.534e+07 1.534e+07 7.276e-11 1.93e-09 6 10 10 1 9.522e-16 1 1 4.974e-16 9.036e-16 QR_SOLVE_TEST Normal end of execution. 08-Feb-2019 20:55:13