1function test18 2%TEST18 test cholmod2 on a few large matrices 3% Example: 4% test18 5% See also cholmod_test 6 7% Copyright 2007, Timothy A. Davis, http://www.suitesparse.com 8 9fprintf ('=================================================================\n'); 10fprintf ('test18: test cholmod2 on a few large matrices\n') ; 11 12rand ('state',1) ; 13randn ('state',1) ; 14 15Prob = ssget (887) %#ok 16A = Prob.A ; 17n = size (A,1) ; 18b = rand (n,1) ; 19x = cholmod2 (A,b) ; 20norm (A*x-b,1) 21 22clear all 23 24Prob = ssget (936) %#ok 25A = Prob.A ; 26n = size (A,1) ; 27b = rand (n,1) ; 28x = cholmod2 (A,b) ; 29norm (A*x-b,1) 30 31clear all 32 33Prob = ssget (887) %#ok 34A = Prob.A ; 35n = size (A,1) ; 36b = rand (n,1) ; 37x = cholmod2 (A,b) ; 38norm (A*x-b,1) 39 40fprintf ('test18 passed\n') ; 41