MATLAB Answers

Report bug on document of gmres

4 views (last 30 days)
Shuzhan Sun
Shuzhan Sun on 16 Jan 2020
Edited: Image Analyst on 17 Jan 2020
The example code for gmres with preconditioner has bug: the relative residual to plot from resvec should be resvec/norm(preconditioner\b), not resvec/norm(b).
A simple check is the relative residual should be 1 when interation = 0, since norm(Ax-b)/norm(b) = norm(b)/norm(b) = 1.

  0 Comments

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 17 Jan 2020
Edited: Image Analyst on 17 Jan 2020
On the bottom of the documentation for any function, click on one of the 5 stars. It will bring up a box that asks you why you gave that star rating and you can tell your story. It will go right to the documentation people at the Mathworks, who would contact the developer for that function if necessary.
Or you can click this link: Bug Reports
Or simply call them on the phone, or email them at support @ mathworks . com
bugs.gif

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags

Products


Release

R2019b