GeezerVison is showing github.com — Initial checkin of the regression package to be released · mlpack/mlpack@6f0a3f7
File tree
Expand file treeCollapse file tree
Open diff view settings
fastlib2/contrib/dongryel/regression
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +31Lines changed: 31 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +# The library build rule for Krylov-subspace based local linear |
| 2 | +# regression. |
| 3 | +librule( |
| 4 | + name = "local_linear_krylov", |
| 5 | + sources = [], |
| 6 | + headers = ["local_linear_krylov.h"], |
| 7 | + deplibs = ["mlpack/series_expansion:series_expansion", |
| 8 | + "fastlib:fastlib_int"] # dependency |
| 9 | + ) |
| 10 | + |
| 11 | +# The binary executable rule for Krylov-subspace based local linear |
| 12 | +# regression. |
| 13 | +binrule( |
| 14 | + name = "local_linear_krylov_bin", |
| 15 | + sources = ["local_linear_krylov_main.cc"], |
| 16 | + headers = [], |
| 17 | + deplibs = [":local_linear_krylov", |
| 18 | + "mlpack/series_expansion:series_expansion", |
| 19 | + "fastlib:fastlib_int"] |
| 20 | + ) |
| 21 | + |
| 22 | +# to build: |
| 23 | +# 1. make sure have environment variables set up: |
| 24 | +# $ source /full/path/to/fastlib/script/fl-env /full/path/to/fastlib |
| 25 | +# (you might want to put this in bashrc) |
| 26 | +# 2. fl-build main |
| 27 | +# - this automatically will assume --mode=check, the default |
| 28 | +# - type fl-build --help for help |
| 29 | +# 3. ./main |
| 30 | +# - to build same target again, type: make |
| 31 | +# - to force recompilation, type: make clean |
Collapse file
Copy file name to clipboard +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +#ifndef LOCAL_LINEAR_KRYLOV_H |
| 2 | +#define LOCAL_LINEAR_KRYLOV_H |
| 3 | + |
| 4 | + |
| 5 | +#endif |
Collapse file
Copy file name to clipboard +13Lines changed: 13 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +#include "fastlib/fastlib.h" |
| 2 | +#include "local_linear_krylov.h" |
| 3 | + |
| 4 | +int main(int argc, char *argv[]) { |
| 5 | + |
| 6 | + // Initialize FastExec... |
| 7 | + fx_init(argc, argv); |
| 8 | + |
| 9 | + |
| 10 | + // Finalize FastExec and print output results. |
| 11 | + fx_done(); |
| 12 | + return 0; |
| 13 | +} |