Skip to content
Snippets Groups Projects
Commit 460ec6c1 authored by Jakhes's avatar Jakhes
Browse files

Restructure Project

parent 42c80082
Branches
No related tags found
No related merge requests found
splfr=/usr/local/sicstus4.7.1/bin/splfr
main.so: main.pl main.cpp
$(splfr) -larmadillo -fopenmp -lmlpack -lstdc++ -cxx --struct main.pl main.cpp
clean:
rm main.so
splfr=/usr/local/sicstus4.7.1/bin/splfr
bayesian_linear_regression.so: bayesian_linear_regression.pl bayesian_linear_regression.cpp
$(splfr) -larmadillo -fopenmp -lmlpack -lstdc++ -cxx --struct bayesian_linear_regression.pl bayesian_linear_regression.cpp
clean:
rm bayesian_linear_regression.so
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/* ex_glue.h is generated by splfr from the foreign/[2,3] facts. /* ex_glue.h is generated by splfr from the foreign/[2,3] facts.
Always include the glue header in your foreign resource code. Always include the glue header in your foreign resource code.
*/ */
#include "main_glue.h" #include "bayesian_linear_regression_glue.h"
#include <mlpack/methods/bayesian_linear_regression/bayesian_linear_regression.hpp> #include <mlpack/methods/bayesian_linear_regression/bayesian_linear_regression.hpp>
#include <mlpack/core.hpp> #include <mlpack/core.hpp>
......
...@@ -24,9 +24,9 @@ foreign(train, c, train(+pointer(float_array), +integer, +integer, +pointer(flo ...@@ -24,9 +24,9 @@ foreign(train, c, train(+pointer(float_array), +integer, +integer, +pointer(flo
foreign(variance, c, variance([-integer])). foreign(variance, c, variance([-integer])).
%% Defines what functions should be connected from main.cpp %% Defines what functions should be connected from main.cpp
foreign_resource(main, [initModel, alpha, beta, dataOffset, dataScale, omega, predict, predictWithStd, rmse, train, variance]). foreign_resource(bayesian_linear_regression, [initModel, alpha, beta, dataOffset, dataScale, omega, predict, predictWithStd, rmse, train, variance]).
:- load_foreign_resource(main). :- load_foreign_resource(bayesian_linear_regression).
%% Functions for editing float arrays %% Functions for editing float arrays
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment