8
9
% Copyright 2007, Timothy A. Davis, University of Florida
13
13
[ignore f] = sort (index.nnz) ;
20
Prob = UFget (i, index) ;
29
if (nnz (spones (AT) - spones (A)) == 0)
30
fprintf ('skip test with transpose\n') ;
43
q2 = maxtrans (A, 10) ;
48
'%4d %4d : %10.4f %8d : %10.4f %8d : rel %8.4f %8.4f\n', ...
49
k, f(k), t1, r1, t2, r2, t1 ./ t2, r2 ./ (max (1, r1))) ;
53
fprintf ('^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n') ;
16
skip_costly = [1514 1297 1876 1301] ;
17
f = setdiff (f, skip_costly) ;
22
nmat = min (nmat, length (f)) ;
25
h = waitbar (0, 'BTF test 5 of 6') ;
31
Prob = UFget (i, index) ;
42
if (nnz (spones (AT) - spones (A)) == 0)
43
fprintf ('skip test with transpose\n') ;
56
q2 = maxtrans (A, 10) ;
61
'%4d %4d : %10.4f %8d : %10.4f %8d', k, f(k), t1, r1, t2, r2) ;
62
fprintf (' rel sprank %8.4f', r2 / (max (1, r1))) ;
64
fprintf (': rel time %8.4f', t1 / t2) ;
70
fprintf ('^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n') ;
77
% out-of-memory is OK, other errors are not
79
if (isempty (strfind (lasterr, 'Out of memory')))
80
error (lasterr) ; %#ok
82
fprintf ('test terminated early, but otherwise OK\n') ;