8
% Copyright 2006-2007, Timothy A. Davis.
9
% http://www.cise.ufl.edu/research/sparse
15
[ignore f] = sort (max (index.nrows, index.ncols)) ;
36
S = S + 1i * sprand (A) ;
44
p2 = cs_nd (sparse (1)) ;
54
if (any (sort (p2) ~= 1:n))
58
rel = t2 / max (t1,1e-6) ;
60
fprintf ('time: symrcm %8.3f nd %8.3f rel %8.2f\n', t1, t2, rel) ;
62
subplot (1,3,1) ; spy (A) ;
63
subplot (1,3,2) ; spy (A (p1,p1)) ;
64
subplot (1,3,3) ; spy (A (p2,p2)) ;
66
% evaluate the profile ...