@@ -5,15 +5,16 @@ function matlab_install(SuiteSparse_path)
5
5
% SuiteSparse toolbox by Tim Davis:
6
6
% http://www.cise.ufl.edu/research/sparse/SuiteSparse/current/SuiteSparse/
7
7
%
8
- % This package includes the SuiteSparse version 3.4 .
8
+ % This package includes the SuiteSparse version 4.4.2 .
9
9
%
10
10
% * To install without SuiteSparse run matlab_install
11
11
% * To install with SuiteSparse run matlab_install('SuiteSparseOn')
12
12
%
13
13
% The function matlab_install compiles the mex-files and prints on
14
14
% the screen, which directories should be added to Matlab paths.
15
15
16
- % Copyright (c) 2008-2012 Jarno Vanhatalo
16
+ % Copyright (c) 2008-2012, 2016 Jarno Vanhatalo
17
+ % Copyright (c) 2016 Eero Siivola
17
18
18
19
% This software is distributed under the GNU General Public
19
20
% License (version 3 or later); please refer to the file
@@ -29,14 +30,44 @@ function matlab_install(SuiteSparse_path)
29
30
fprintf(' gpcf_ppcs0 \n gpcf_ppcs1 \n gpcf_ppcs2 \n gpcf_ppcs3 \n\n\n ' )
30
31
elseif strcmp(SuiteSparse_path , ' SuiteSparseOn' )
31
32
cdir = pwd ;
32
- cd SuiteSparse // Change this to correspond your own settings!
33
+ cd SuiteSparse % Change this to correspond your own settings!
33
34
SuiteSparse_path = path_spaces([pwd ' /' ]);
34
35
35
36
36
37
% Compile SuiteSparse
37
38
fprintf(' Compiling SuiteSparse. This may take a while \n \n ' )
38
39
SuiteSparse_install(false );
39
40
41
+ paths{1 } = SuiteSparse_path ;
42
+ paths{2 } = [SuiteSparse_path ' UMFPACK/MATLAB' ];
43
+ paths{3 } = [SuiteSparse_path ' CHOLMOD/MATLAB' ];
44
+ paths{4 } = [SuiteSparse_path ' AMD/MATLAB' ];
45
+ paths{5 } = [SuiteSparse_path ' COLAMD/MATLAB' ];
46
+ paths{6 } = [SuiteSparse_path ' CCOLAMD/MATLAB' ];
47
+ paths{7 } = [SuiteSparse_path ' CAMD/MATLAB' ];
48
+ paths{8 } = [SuiteSparse_path ' CXSparse/MATLAB/Demo' ];
49
+ paths{9 } = [SuiteSparse_path ' CXSparse/MATLAB/CSparse' ];
50
+ paths{10 } = [SuiteSparse_path ' LDL/MATLAB' ];
51
+ paths{11 } = [SuiteSparse_path ' BTF/MATLAB' ];
52
+ paths{12 } = [SuiteSparse_path ' KLU/MATLAB' ];
53
+ paths{13 } = [SuiteSparse_path ' SPQR/MATLAB' ];
54
+ paths{14 } = [SuiteSparse_path ' RBio/RBio' ];
55
+ paths{15 } = [SuiteSparse_path ' MATLAB_Tools' ];
56
+ paths{16 } = [SuiteSparse_path ' MATLAB_Tools/Factorize' ];
57
+ paths{17 } = [SuiteSparse_path ' MATLAB_Tools/MESHND' ];
58
+ paths{18 } = [SuiteSparse_path ' MATLAB_Tools/LINFACTOR' ];
59
+ paths{19 } = [SuiteSparse_path ' MATLAB_Tools/find_components' ];
60
+ paths{20 } = [SuiteSparse_path ' MATLAB_Tools/GEE' ];
61
+ paths{21 } = [SuiteSparse_path ' MATLAB_Tools/shellgui' ];
62
+ paths{22 } = [SuiteSparse_path ' MATLAB_Tools/waitmex' ];
63
+ paths{23 } = [SuiteSparse_path ' MATLAB_Tools/spqr_rank' ];
64
+ paths{24 } = [SuiteSparse_path ' MATLAB_Tools/spqr_rank/SJget' ];
65
+ paths{25 } = [SuiteSparse_path ' MATLAB_Tools/UFcollection' ];
66
+ paths{26 } = [SuiteSparse_path ' MATLAB_Tools/SSMULT' ];
67
+ paths{27 } = [SuiteSparse_path ' MATLAB_Tools/dimacs10' ];
68
+ paths{28 } = [SuiteSparse_path ' MATLAB_Tools/spok' ];
69
+ paths{29 } = [SuiteSparse_path ' MATLAB_Tools/sparseinv' ];
70
+
40
71
cd(cdir )
41
72
fprintf(' Compiling GPstuff. This may take a while \n \n ' )
42
73
else
@@ -84,13 +115,12 @@ function matlab_install(SuiteSparse_path)
84
115
fprintf (' addpath %s\n ' , S{i }) ;
85
116
end
86
117
87
- % SuiteSparse paths not available in the newest SuiteSparse version
88
- % if nargin==1
89
- % fprintf ('\n')
90
- % for k = 1:length (paths)
91
- % fprintf ('addpath %s\n', paths {k}) ;
92
- % end
93
- % end
118
+ if nargin == 1
119
+ fprintf (' \n ' )
120
+ for k = 1 : length (paths )
121
+ fprintf (' addpath %s\n ' , paths {k }) ;
122
+ end
123
+ end
94
124
end
95
125
96
126
function path = path_spaces(path )
0 commit comments