1 function [lambda,it,rate,XC]=sparse_solve(K,F,X,params)
4 fprintf('sparse_solve: problem size %g mesh %g %g %g\n',nn,n)
9 disp('sparse direct solver')
12 case {'r','red-black'}
13 [lambda,it] = rb_line_gs_solve(K,F,X);
15 [lambda,it,rate,XC] = multigrid_solve(K,F,X,params);
17 [lambda,it] = rb_schwarz_solve(K,F,X);
19 error('unknown method')