-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRcppExports.cpp
More file actions
52 lines (46 loc) · 2.45 KB
/
RcppExports.cpp
File metadata and controls
52 lines (46 loc) · 2.45 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include <RcppArmadillo.h>
#include <Rcpp.h>
using namespace Rcpp;
#ifdef RCPP_USE_GLOBAL_ROSTREAM
Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get();
Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get();
#endif
// precompute_topological_sorts
Rcpp::List precompute_topological_sorts(arma::umat prefs, int n_items, double save_frac);
RcppExport SEXP _BayesMallowsSMC2_precompute_topological_sorts(SEXP prefsSEXP, SEXP n_itemsSEXP, SEXP save_fracSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< arma::umat >::type prefs(prefsSEXP);
Rcpp::traits::input_parameter< int >::type n_items(n_itemsSEXP);
Rcpp::traits::input_parameter< double >::type save_frac(save_fracSEXP);
rcpp_result_gen = Rcpp::wrap(precompute_topological_sorts(prefs, n_items, save_frac));
return rcpp_result_gen;
END_RCPP
}
// run_smc
Rcpp::List run_smc(Rcpp::List input_timeseries, Rcpp::List input_prior, Rcpp::List input_options, Rcpp::List input_sort_matrices, Rcpp::List input_sort_counts);
RcppExport SEXP _BayesMallowsSMC2_run_smc(SEXP input_timeseriesSEXP, SEXP input_priorSEXP, SEXP input_optionsSEXP, SEXP input_sort_matricesSEXP, SEXP input_sort_countsSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< Rcpp::List >::type input_timeseries(input_timeseriesSEXP);
Rcpp::traits::input_parameter< Rcpp::List >::type input_prior(input_priorSEXP);
Rcpp::traits::input_parameter< Rcpp::List >::type input_options(input_optionsSEXP);
Rcpp::traits::input_parameter< Rcpp::List >::type input_sort_matrices(input_sort_matricesSEXP);
Rcpp::traits::input_parameter< Rcpp::List >::type input_sort_counts(input_sort_countsSEXP);
rcpp_result_gen = Rcpp::wrap(run_smc(input_timeseries, input_prior, input_options, input_sort_matrices, input_sort_counts));
return rcpp_result_gen;
END_RCPP
}
static const R_CallMethodDef CallEntries[] = {
{"_BayesMallowsSMC2_precompute_topological_sorts", (DL_FUNC) &_BayesMallowsSMC2_precompute_topological_sorts, 3},
{"_BayesMallowsSMC2_run_smc", (DL_FUNC) &_BayesMallowsSMC2_run_smc, 5},
{NULL, NULL, 0}
};
RcppExport void R_init_BayesMallowsSMC2(DllInfo *dll) {
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
R_useDynamicSymbols(dll, FALSE);
}