Skip to content

Commit eddb16c

Browse files
author
Siivola Eero
committed
Bugfix: Made changes to matlab_install for it to work with the newer version of SuiteSparse
1 parent 254bdb1 commit eddb16c

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

matlab_install.m

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ function matlab_install(SuiteSparse_path)
2929
fprintf(' gpcf_ppcs0 \n gpcf_ppcs1 \n gpcf_ppcs2 \n gpcf_ppcs3 \n\n\n')
3030
elseif strcmp(SuiteSparse_path, 'SuiteSparseOn')
3131
cdir = pwd;
32-
cd SuiteSparse
32+
cd SuiteSparse //Change this to correspond your own settings!
3333
SuiteSparse_path = path_spaces([pwd '/']);
3434

3535

3636
% Compile SuiteSparse
3737
fprintf('Compiling SuiteSparse. This may take a while \n \n')
38-
paths = SuiteSparse_install(false);
38+
SuiteSparse_install(false);
3939

4040
cd(cdir)
4141
fprintf('Compiling GPstuff. This may take a while \n \n')
@@ -83,13 +83,14 @@ function matlab_install(SuiteSparse_path)
8383
addpath(S{i});
8484
fprintf ('addpath %s\n', S{i}) ;
8585
end
86-
87-
if nargin==1
88-
fprintf ('\n')
89-
for k = 1:length (paths)
90-
fprintf ('addpath %s\n', paths {k}) ;
91-
end
92-
end
86+
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
9394
end
9495

9596
function path = path_spaces(path)

0 commit comments

Comments
 (0)