~ubuntu-branches/ubuntu/hardy/suitesparse/hardy

« back to all changes in this revision

Viewing changes to CXSparse_newfiles/MATLAB/Test/test2.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:
20
20
    j = 1 + fix (n * rand (nz,1)) ;
21
21
    x = rand (nz,1) ;
22
22
 
23
 
    if (mod (trial, 2) == 1)
24
 
        x = x + 1i * (2*rand(nz,1)-1) ;
 
23
    if (~ispc)
 
24
        if (mod (trial, 2) == 1)
 
25
            x = x + 1i * (2*rand(nz,1)-1) ;
 
26
        end
25
27
    end
26
28
 
27
29
    A = sparse (i,j,x) ;
71
73
 
72
74
    x = rand (m,1) ;
73
75
 
74
 
    if (mod (trial, 2) == 1)
75
 
        x = x + 1i * (2*rand(m,1)-1) ;
 
76
    if (~ispc)
 
77
        if (mod (trial, 2) == 1)
 
78
            x = x + 1i * (2*rand(m,1)-1) ;
 
79
        end
76
80
    end
77
81
 
78
82
    x1 = x (p) ;