|
| 1 | +// Generated by using Rcpp::compileAttributes() -> do not edit by hand |
| 2 | +// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 |
| 3 | + |
| 4 | +#include <Rcpp.h> |
| 5 | + |
| 6 | +using namespace Rcpp; |
| 7 | + |
| 8 | +#ifdef RCPP_USE_GLOBAL_ROSTREAM |
| 9 | +Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get(); |
| 10 | +Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get(); |
| 11 | +#endif |
| 12 | + |
| 13 | +// rcpp_bm25 |
| 14 | +Rcpp::List rcpp_bm25(const Rcpp::DataFrame& idfs, const Rcpp::List& tokens, Rcpp::DataFrame& tokens_i); |
| 15 | +RcppExport SEXP _pkgsimil_rcpp_bm25(SEXP idfsSEXP, SEXP tokensSEXP, SEXP tokens_iSEXP) { |
| 16 | +BEGIN_RCPP |
| 17 | + Rcpp::RObject rcpp_result_gen; |
| 18 | + Rcpp::RNGScope rcpp_rngScope_gen; |
| 19 | + Rcpp::traits::input_parameter< const Rcpp::DataFrame& >::type idfs(idfsSEXP); |
| 20 | + Rcpp::traits::input_parameter< const Rcpp::List& >::type tokens(tokensSEXP); |
| 21 | + Rcpp::traits::input_parameter< Rcpp::DataFrame& >::type tokens_i(tokens_iSEXP); |
| 22 | + rcpp_result_gen = Rcpp::wrap(rcpp_bm25(idfs, tokens, tokens_i)); |
| 23 | + return rcpp_result_gen; |
| 24 | +END_RCPP |
| 25 | +} |
| 26 | + |
| 27 | +static const R_CallMethodDef CallEntries[] = { |
| 28 | + {"_pkgsimil_rcpp_bm25", (DL_FUNC) &_pkgsimil_rcpp_bm25, 3}, |
| 29 | + {NULL, NULL, 0} |
| 30 | +}; |
| 31 | + |
| 32 | +RcppExport void R_init_pkgsimil(DllInfo *dll) { |
| 33 | + R_registerRoutines(dll, NULL, CallEntries, NULL, NULL); |
| 34 | + R_useDynamicSymbols(dll, FALSE); |
| 35 | +} |
0 commit comments