forked from nazikus/dalcim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmexAll.m
More file actions
34 lines (22 loc) · 1.15 KB
/
mexAll.m
File metadata and controls
34 lines (22 loc) · 1.15 KB
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
fprintf('Compiling files...\n');
dirName = fileparts(mfilename('fullpath'));
addpath(genpath(dirName));
cd(dirName);
compName = computer;
delete(['kernel/gcc/*',mexext]);
delete(['kernel/other/*',mexext]);
delete(['kernel/*',mexext]);
if ~strcmp(compName(1:2),'PC')
fprintf('Compiling with g++-4.2 - If it is not installed please change mexAll.m \n');
mex CXX=g++-4.2 -Ikernel/gcc kernel/gcc/icdChi2.cpp -outdir kernel
else
fprintf('The optimized version of this code has been made to compile with g++ - If g++ is installed please change mexAll.m \n');
mex -Ikernel/other kernel/other/icd_chi2.c -outdir kernel
end
mex -ILaplacianMatrix LaplacianMatrix/graphLap.cpp -outdir LaplacianMatrix
mex -IconvexQuadratic/Optim_on_the_elliptope_modified/mex_sources ...
convexQuadratic/Optim_on_the_elliptope_modified/mex_sources/normalize_rows_new.cpp ...
-outdir convexQuadratic/Optim_on_the_elliptope_modified/mex_sources
mex -IconvexQuadratic/Optim_on_the_elliptope_modified/mex_sources ...
convexQuadratic/Optim_on_the_elliptope_modified/mex_sources/aux_fct_new.cpp ...
-outdir convexQuadratic/Optim_on_the_elliptope_modified/mex_sources