1
function cholmod_install (metis_path)
2
%CHOLMOD_INSTALL compile and install CHOLMOD, AMD, COLAMD, CCOLAMD, CAMD
5
% cholmod_install % compiles using ../../metis-4.0
6
% cholmod_install ('/my/metis') % using non-default path to METIS
7
% cholmod_install ('no metis') % do not use METIS at all
9
% CHOLMOD relies on AMD and COLAMD, for its ordering options, and can
10
% optionally use CCOLAMD, CAMD, and METIS as well. By default, CCOLAMD, CAMD,
11
% and METIS are used. METIS is assumed to be in the ../../metis-4.0 directory.
13
% See http://www-users.cs.umn.edu/~karypis/metis for a copy of METIS 4.0.1.
15
% You can only use cholmod_install while in the CHOLMOD/MATLAB directory.
17
% See also analyze, bisect, chol2, cholmod2, etree2, lchol, ldlchol, ldlsolve,
18
% ldlupdate, metis, spsym, nesdis, septree, resymbol, sdmult, sparse2,
19
% symbfact2, mread, mwrite, amd2, colamd2, camd, ccolamd
21
% Copyright 2006-2007, Timothy A. Davis
24
metis_path = '../../metis-4.0' ;
27
% compile CHOLMOD and add to the path
28
cholmod_make (metis_path) ;
30
addpath (cholmod_path)
32
fprintf ('\nNow compiling the AMD, COLAMD, CCOLAMD, and CAMD mexFunctions:\n') ;
34
% compile AMD and add to the path
40
% compile COLAMD and add to the path
41
cd ../../COLAMD/MATLAB
46
% compile CCOLAMD and add to the path
47
cd ../../CCOLAMD/MATLAB
50
addpath (ccolamd_path)
52
% compile CAMD and add to the path
60
fprintf ('\nThe following paths have been added. You may wish to add them\n') ;
61
fprintf ('permanently, using the MATLAB pathtool command.\n') ;
62
fprintf ('%s\n', cholmod_path) ;
63
fprintf ('%s\n', amd_path) ;
64
fprintf ('%s\n', colamd_path) ;
65
fprintf ('%s\n', ccolamd_path) ;
66
fprintf ('%s\n', camd_path) ;
68
fprintf ('\nTo try your new mexFunctions, cut-and-paste this command:\n') ;
69
fprintf ('amd_demo, colamd_demo, ccolamd_demo, camd_demo, graph_demo, cholmod_demo\n') ;