-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.m
29 lines (24 loc) · 1.03 KB
/
setup.m
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
% setup environment
setup_paths
% Dynamic Programming
fprintf('Compiling DP files...\n');
mex -outdir DP/ DP/DynamicProgrammingQ2.c DP/dp_grid.c DP/dp_nbhd.c
mex -outdir DP/ DP/DynamicProgrammingQ.c
% Bayesian
fprintf('Compiling Bayesian files...\n');
mex -outdir armadillo_cpp/ armadillo_cpp/bcalcY.cpp
mex -outdir armadillo_cpp/ armadillo_cpp/bcuL2norm2.cpp
mex -outdir armadillo_cpp/ armadillo_cpp/trapzCpp.cpp
mex -outdir armadillo_cpp/ armadillo_cpp/border_l2norm.cpp
% minFunc (lbfgs optimizer)
fprintf('Compiling minFunc files...\n');
mex -outdir minFunc/compiled minFunc/mex/mcholC.c
mex -outdir minFunc/compiled minFunc/mex/lbfgsC.c
mex -outdir minFunc/compiled minFunc/mex/lbfgsAddC.c
mex -outdir minFunc/compiled minFunc/mex/lbfgsProdC.c
% multinomial logistic warp gradient
fprintf('Compiling mlogit files...\n');
mex -outdir mlogit_warp/ mlogit_warp/mlogit_warp.c mlogit_warp/mlogit_warp_grad.c mlogit_warp/misc_funcs.c
% Bayesian
fprintf('Compiling rbfgs files...\n');
mex -outdir armadillo_cpp/ armadillo_cpp/c_rlbfgs.cpp -llapack -lblas