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

« back to all changes in this revision

Viewing changes to CHOLMOD/MATLAB/Test/test23.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 test23
2
 
% test23: test chol and cholmod on the sparse matrix used in "bench"
 
2
%TEST23 test chol and cholmod2 on the sparse matrix used in "bench"
 
3
% Example:
 
4
%   test23
 
5
% See also cholmod_test
 
6
 
 
7
% Copyright 2006-2007, Timothy A. Davis, University of Florida
 
8
 
3
9
fprintf ('=================================================================\n');
4
 
fprintf ('test23: test chol & cholmod on the sparse matrix used in "bench"\n');
 
10
fprintf ('test23: test chol & cholmod2 on the sparse matrix used in "bench"\n');
5
11
 
6
12
n = 120 ;
7
13
A = delsq (numgrid ('L', n)) ;
15
21
e1 = norm (A*x-b) ;
16
22
 
17
23
tic ;
18
 
x = cholmod (A,b) ; 
 
24
x = cholmod2 (A,b) ; 
19
25
t2 = toc ;
20
26
e2 = norm (A*x-b) ;
21
27
 
104
110
e1 = norm (A*x-b) ;
105
111
 
106
112
tic ;
107
 
x = cholmod (A,b,0) ; 
 
113
x = cholmod2 (A,b,0) ; 
108
114
t2 = toc ;
109
115
e2 = norm (A*x-b) ;
110
116