~logan/ubuntu/trusty/suitesparse/4.2.1-3ubuntu1

« back to all changes in this revision

Viewing changes to CHOLMOD/MATLAB/Test/test12.m

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2007-05-29 09:36:29 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070529093629-zowquo0b7slkk6nc
Tags: 3.0.0-2
* suitesparse builds properly twice in a row
* Bug fix: "suitesparse - FTBFS: Broken build depens: libgfortran1-dev",
  thanks to Bastian Blank (Closes: #426349).
* Bug fix: "suitesparse_3.0.0-1: FTBFS: build-depends on
  libgfortran1-dev", thanks to Steve Langasek (Closes: #426354).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
function test12 (nmat)
2
 
% test12(nmat): test etree2 and compare with etree
 
2
%TEST12 test etree2 and compare with etree
 
3
% Example:
 
4
%   test12(nmat)
 
5
% See also cholmod_test
 
6
 
 
7
% Copyright 2006-2007, Timothy A. Davis, University of Florida
 
8
 
3
9
fprintf ('=================================================================\n');
4
10
fprintf ('test12: test etree2 and compare with etree\n') ;
5
11
 
26
32
            844 845 1238 804 939 1270 1305 1208 1209 290 879 928 1307 1244 ...
27
33
            1275 1276 1296 885 1269 959 542 1290 ] ;
28
34
 
29
 
sym_skip = [ s_skip ] ;
 
35
sym_skip =  s_skip  ;
30
36
 
31
 
p_sym_skip =  [ 1296 ] ;
32
 
p_symt_skip = [ 1296 ] ;
 
37
p_sym_skip =   1296  ;
 
38
p_symt_skip =  1296  ;
33
39
 
34
40
symt_skip= [ s_skip 592 593 809 ] ;
35
41
 
70
76
        amd (sparse (1)) ;
71
77
 
72
78
        % test column etree
73
 
        skip = any (i == col_skip) || m > 109000 ;
 
79
        skip = any (i == col_skip) | m > 109000 ;                           %#ok
74
80
        if (~skip)
75
81
            tic ;
76
82
            [parent post] = etree (A, 'col') ;
98
104
        fprintf ('\n') ;
99
105
 
100
106
        % test row etree
101
 
        skip = any (i == row_skip) || m > 109000 ;
 
107
        skip = any (i == row_skip) | m > 109000 ;                           %#ok
102
108
        if (~skip)
103
109
            tic ;
104
110
            [parent post] = etree (A', 'col') ;
132
138
            for trial = 1:2
133
139
 
134
140
                if (trial == 1)
135
 
                    skip1 = any (i == sym_skip)  || m > 109000 ;
136
 
                    skip2 = any (i == symt_skip) || m > 109000 ;
 
141
                    skip1 = any (i == sym_skip) | m > 109000 ;              %#ok
 
142
                    skip2 = any (i == symt_skip) | m > 109000 ;             %#ok
137
143
                else
138
 
                    skip1 = any (i == p_sym_skip)  || m > 109000 ;
139
 
                    skip2 = any (i == p_symt_skip) || m > 109000 ;
 
144
                    skip1 = any (i == p_sym_skip) | m > 109000 ;            %#ok
 
145
                    skip2 = any (i == p_symt_skip) | m > 109000 ;           %#ok
140
146
                    fprintf ('after amd:\n') ;
141
147
                    p = amd (A) ;
142
148
                    A = A (p,p) ;