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.

Examples Example 1.<br />

bicg(afun,b,tol,maxit,m1fun,m2fun,x0,p1,p2,...) passes parameters<br />

p1,p2,... to functions afun(x,p1,p2,...) and<br />

afun(x,p1,p2,...,'transp'), and similarly to the preconditioner functions<br />

m1fun and m2fun.<br />

[x,flag] = bicg(A,b,...) also returns a convergence flag.<br />

Flag Convergence<br />

0 bicg converged to the desired tolerance tol within maxit<br />

iterations.<br />

1 bicg iterated maxit times but did not converge.<br />

2 Preconditioner M was ill-conditioned.<br />

3 bicg stagnated. (Two consecutive iterates were the same.)<br />

4 One of the scalar quantities calculated during bicg became<br />

too small or too large to continue computing.<br />

Whenever flag is not 0, the solution x returned is that with minimal norm<br />

residual computed over all the iterations. No messages are displayed if the<br />

flag output is specified.<br />

[x,flag,relres] = bicg(A,b,...) also returns the relative residual<br />

norm(b-A*x)/norm(b). If flag is 0, relres

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

Saved successfully!

Ooh no, something went wrong!