1% Simple example of
using MUMPS in matlab
3% initialization of a matlab
MUMPS structure
6% and fortran
MUMPS structure
12mat =
mat + sparse(1:n,1:n,i*ones(
n,1));
13%
JOB = 6 means analysis+facto+solve
16% we
set the right hand side
17id.RHS = ones(size(
mat,1),1);
20% we see that there is a memory problem in
INFOG(1) and
INFOG(2)
23% we activate
the numerical maximun transversal
27 disp('WARNING : precision may not be OK');
32% destroy mumps instance
!This file is part of MUMPS
if(complex_arithmetic) id
end diagonal values have been computed in the(sparse) matrix id.SOL
norm(diag(diag(diag(inv(mat))) -id.SOL), 2) % destroy mumps instance id.JOB
end[inform, rinform, sol, inst, schur, redrhs, pivnul_list, sym_perm, uns_perm, icntl, cntl, colsca_out, rowsca_out, keep_out, dkeep_out]
if(norm(mat *id.SOL - id.RHS, 'inf') > sqrt(eps)) disp('WARNING els disp)('SOLUTION OK')