File: cs_install.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 (38 lines) | stat: -rw-r--r-- 1,181 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
function cs_install
%CS_INSTALL: compile and install CSparse for use in MATLAB.
%   Your current working directory must be CSparse/MATLAB in order to use this
%   function.
%   
%   The directories
%
%       CSparse/MATLAB/CSparse
%       CSparse/MATLAB/Demo
%       CSparse/MATLAB/UFget
%
%   are added to your MATLAB path (see the "pathtool" command to add these to
%   your path permanently, for future MATLAB sessions).  The path
%
%       CSparse/MATLAB/UFget
%
%   is also added to your java class path (see the "javaaddpath" command).
%   Edit your classpath.txt file (type the command "which claspath.txt") to
%   add this directory to your Java class path permanently.
%
%   Next, the MATLAB CSparse demo program, CSparse/MATLAB/cs_demo is executed.
%   To run the full MATLAB test programs for CSparse, run testall in the
%   Test directory.
%
%   Copyright 2006, Timothy A. Davis.
%   http://www.cise.ufl.edu/research/sparse

help cs_install
input ('Hit enter to continue: ') ;
addpath ([pwd filesep 'CSparse']) ;
addpath ([pwd filesep 'Demo']) ;
addpath ([pwd filesep 'UFget']) ;
javaaddpath ([pwd filesep 'UFget']) ;

cd ('CSparse') ;
cs_make
cd ('../Demo') ;
cs_demo