File: cs_demo2.m

package info (click to toggle)
ufsparse 1.2-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 27,536 kB
  • ctags: 5,848
  • sloc: ansic: 89,328; makefile: 4,721; fortran: 1,991; csh: 207; sed: 162; awk: 33; java: 30; sh: 8
file content (21 lines) | stat: -rw-r--r-- 461 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function cs_demo2
% CS_DEMO2: MATLAB version of the CSparse/Demo/cs_demo2.c program.
%   Solves a linear system using Cholesky, LU, and QR, with various orderings.

matrices = {
't1',
'HB/fs_183_1',
'HB/west0067',
'LPnetlib/lp_afiro',
'HB/ash219',
'HB/mbeacxc',
'HB/bcsstk01',
'HB/bcsstk16',
}

for i = 1:length(matrices)
    name = matrices {i} ;
    [C sym] = get_problem (name, 1e-14) ;
    demo2 (C, sym, name) ;
    input ('Hit enter to continue: ') ;
end