1function test23
2%TEST23 test cs_dmspy
3%
4% Example:
5%   test23
6% See also: testall
7
8% Copyright 2006-2012, Timothy A. Davis, http://www.suitesparse.com
9
10clear functions
11
12randn ('state', 0) ;
13rand ('state', 0) ;
14
15clf
16
17for trials = 1:1000
18
19    % m = fix (100 * rand (1)) ;
20    n = fix (100 * rand (1)) ;
21    m = n ;
22    % d = 0.1 * rand (1) ;
23    d = rand (1) * 4 * max (m,n) / max (m*n,1) ;
24    A = sprandn (m,n,d) ;
25    % S = sprandn (m,m,d) + speye (m) ;
26
27    if (~ispc)
28        if (rand ( ) > .5)
29            A = A + 1i * sprand (A) ;
30        end
31    end
32
33    cs_dmspy (A) ;
34    drawnow
35
36    % pause
37end
38