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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4559<br />

This time U2 is nonsingular and may be an appropriate preconditioner.<br />

[x,flag,relres,iter,resvec] = bicg(A,b,1e-15,10,L2,U2)<br />

flag =<br />

relres =<br />

iter =<br />

0<br />

2.0248e-16<br />

8<br />

and bicg converges to within the desired tolerance at iteration number 8.<br />

Decreasing the value of the drop tolerance increases the fill-in of the<br />

incomplete factors but also increases the accuracy of the approximation to the<br />

original matrix. Thus, the preconditioned system becomes closer to<br />

inv(U)*inv(L)*L*U*x = inv(U)*inv(L)*b, where L and U are the true LU<br />

factors, and closer to being solved within a single iteration.<br />

The next graph shows the progress of bicg using six different incomplete LU<br />

factors as preconditioners. Each line in the graph is labeled with the drop<br />

tolerance of the preconditioner used in bicg.<br />

bicg<br />

2-151

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

Saved successfully!

Ooh no, something went wrong!