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

« back to all changes in this revision

Viewing changes to CXSparse_newfiles/MATLAB/Test/test3.m

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere, Rafael Laboissiere, Ondrej Certik
  • Date: 2008-02-21 14:46:50 UTC
  • mfrom: (1.1.2 upstream) (5.1.1 hardy)
  • Revision ID: james.westby@ubuntu.com-20080221144650-tgeppgj0t7s759i8
Tags: 3.1.0-3
[ Rafael Laboissiere ]
* Upload to unstable

[ Ondrej Certik ]
* XS-DM-Upload-Allowed: yes field added
* Ondrej Certik added to uploaders

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    Prob = UFget (i) ;
22
22
    disp (Prob) ;
23
23
 
24
 
    for cmplex = 0:1
 
24
    for cmplex = 0:double(~ispc)
25
25
 
26
26
        A = Prob.A ;
27
27
        [m n] = size (A) ;
45
45
            continue
46
46
        end
47
47
        b = rand (n,1) ;
48
 
        if (mod (i,2) == 1)
49
 
            b = b + 1i*rand(n,1) ;
50
 
        end
 
48
 
 
49
        if (~ispc)
 
50
            if (mod (i,2) == 1)
 
51
                b = b + 1i*rand(n,1) ;
 
52
            end
 
53
        end
51
54
 
52
55
        C = A(p,p) ;
53
56
        c = condest (C) ;