23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

cgs<br />

2-238<br />

progress of cgs by plotting the relative residuals at each iteration starting from<br />

the initial estimate (iterate number 0) with<br />

semilogy(0:iter2,resvec2/norm(b),'-o')<br />

xlabel('iteration number')<br />

ylabel('relative residual')<br />

relative residual<br />

10 0<br />

10 −2<br />

10 −4<br />

10 −6<br />

10 −8<br />

10 −10<br />

10 −12<br />

10 −14<br />

10<br />

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5<br />

−16<br />

iteration number<br />

See Also bicg, bicgstab, gmres, lsqr, luinc, minres, pcg, qmr, symmlq<br />

@ (function handle), \ (backslash)<br />

<strong>Reference</strong>s [1] Barrett, R., M. Berry, T. F. Chan, et al., Templates for the Solution of Linear<br />

Systems: Building Blocks for Iterative Methods, SIAM, Philadelphia, 1994.<br />

[2] Sonneveld, Peter, “CGS: A fast Lanczos-type solver for nonsymmetric linear<br />

systems”, SIAM J. Sci. Stat. Comput., January 1989, Vol. 10, No. 1, pp. 36-52.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!