The Jacobi diagonal preconditioner (Problem 21.7) performs best when the coefficient matrix is strictly diagonally dominant and has widely varying diagonal entries. Write a function jacobipregmres that implements Jacobi preconditioning for themethod. Return with a message if the preconditioned matrix does not have a condition number that is at most 80% of the condition number for
Build thematrix,with seven diagonals:
Compute the condition number ofUsingTtol−6andcompute the solution using both gmresb and jacobipregmres. Display the residuals.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here