No BSD License
-
bicg(A, x, b, M, max_it, tol)
-- Iterative template routine --
-
bicgstab(A, x, b, M, max_it, ...
-- Iterative template routine --
-
cg(A, x, b, M, max_it, tol)
-- Iterative template routine --
-
cgs(A, x, b, M, max_it, tol)
-- Iterative template routine --
-
cheby(A, x, b, M, max_it, tol)
-- Iterative template routine --
-
gmres( A, x, b, M, restrt, ma...
-- Iterative template routine --
-
jacobi(A, x, b, max_it, tol)
-- Iterative template routine --
-
lehmer(n)
LEHMER A = LEHMER(N) is the symmetric positive definite N-by-N matrix with
-
makefish(siz);
make a Poisson matrix
-
qmr( A, x, b, M, max_it, tol )
-- Iterative template routine --
-
rotmat( a, b )
% Compute the Givens rotation matrix parameters for a and b.
-
sor(A, x, b, w, max_it, tol)
-- Iterative template routine --
-
split( A, b, w, flag )
-
templatestester()
-
testmat( siz );
% matrix generator function for templates tester
-
wathen(nx, ny, k)
-
readme.m
-
View all files
|
|
| testmat( siz ); |
function mat = testmat( siz );
%
% matrix generator function for templates tester
%
if ( siz == 10 ),
mat = makefish( 4 ); % poisson matrix
elseif ( siz == 20 ),
mat = wathen( 3, 3, 0 ); % spd consistent mass matrix
elseif ( siz == 30 ),
mat = wathen( 3, 3, 1 ); % spd consistent mass matrix
elseif ( siz == 40 ),
mat = lehmer(5);
elseif ( siz == 50 ),
mat = lehmer(10);
else
mat = makefish( 4 ); % irrelevant: x0 = exact solution
end
|
|
Contact us at files@mathworks.com