|
| 1 | +// Generated by using Rcpp::compileAttributes() -> do not edit by hand |
| 2 | +// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 |
| 3 | + |
| 4 | +#include <RcppArmadillo.h> |
| 5 | +#include <Rcpp.h> |
| 6 | + |
| 7 | +using namespace Rcpp; |
| 8 | + |
| 9 | +// get_umax |
| 10 | +Rcpp::List get_umax(const arma::mat& P, const arma::vec& b); |
| 11 | +RcppExport SEXP _gfilogisreg_get_umax(SEXP PSEXP, SEXP bSEXP) { |
| 12 | +BEGIN_RCPP |
| 13 | + Rcpp::RObject rcpp_result_gen; |
| 14 | + Rcpp::RNGScope rcpp_rngScope_gen; |
| 15 | + Rcpp::traits::input_parameter< const arma::mat& >::type P(PSEXP); |
| 16 | + Rcpp::traits::input_parameter< const arma::vec& >::type b(bSEXP); |
| 17 | + rcpp_result_gen = Rcpp::wrap(get_umax(P, b)); |
| 18 | + return rcpp_result_gen; |
| 19 | +END_RCPP |
| 20 | +} |
| 21 | +// get_vmin_i |
| 22 | +double get_vmin_i(const arma::mat& P, const arma::vec& b, const size_t i, const arma::vec& mu); |
| 23 | +RcppExport SEXP _gfilogisreg_get_vmin_i(SEXP PSEXP, SEXP bSEXP, SEXP iSEXP, SEXP muSEXP) { |
| 24 | +BEGIN_RCPP |
| 25 | + Rcpp::RObject rcpp_result_gen; |
| 26 | + Rcpp::RNGScope rcpp_rngScope_gen; |
| 27 | + Rcpp::traits::input_parameter< const arma::mat& >::type P(PSEXP); |
| 28 | + Rcpp::traits::input_parameter< const arma::vec& >::type b(bSEXP); |
| 29 | + Rcpp::traits::input_parameter< const size_t >::type i(iSEXP); |
| 30 | + Rcpp::traits::input_parameter< const arma::vec& >::type mu(muSEXP); |
| 31 | + rcpp_result_gen = Rcpp::wrap(get_vmin_i(P, b, i, mu)); |
| 32 | + return rcpp_result_gen; |
| 33 | +END_RCPP |
| 34 | +} |
| 35 | +// get_vmin |
| 36 | +arma::vec get_vmin(const arma::mat& P, const arma::vec& b, const arma::vec& mu); |
| 37 | +RcppExport SEXP _gfilogisreg_get_vmin(SEXP PSEXP, SEXP bSEXP, SEXP muSEXP) { |
| 38 | +BEGIN_RCPP |
| 39 | + Rcpp::RObject rcpp_result_gen; |
| 40 | + Rcpp::RNGScope rcpp_rngScope_gen; |
| 41 | + Rcpp::traits::input_parameter< const arma::mat& >::type P(PSEXP); |
| 42 | + Rcpp::traits::input_parameter< const arma::vec& >::type b(bSEXP); |
| 43 | + Rcpp::traits::input_parameter< const arma::vec& >::type mu(muSEXP); |
| 44 | + rcpp_result_gen = Rcpp::wrap(get_vmin(P, b, mu)); |
| 45 | + return rcpp_result_gen; |
| 46 | +END_RCPP |
| 47 | +} |
| 48 | +// get_bounds |
| 49 | +Rcpp::List get_bounds(const arma::mat& P, const arma::vec& b); |
| 50 | +RcppExport SEXP _gfilogisreg_get_bounds(SEXP PSEXP, SEXP bSEXP) { |
| 51 | +BEGIN_RCPP |
| 52 | + Rcpp::RObject rcpp_result_gen; |
| 53 | + Rcpp::RNGScope rcpp_rngScope_gen; |
| 54 | + Rcpp::traits::input_parameter< const arma::mat& >::type P(PSEXP); |
| 55 | + Rcpp::traits::input_parameter< const arma::vec& >::type b(bSEXP); |
| 56 | + rcpp_result_gen = Rcpp::wrap(get_bounds(P, b)); |
| 57 | + return rcpp_result_gen; |
| 58 | +END_RCPP |
| 59 | +} |
| 60 | +// rcd |
| 61 | +arma::mat rcd(const size_t n, const arma::mat& P, const arma::vec& b); |
| 62 | +RcppExport SEXP _gfilogisreg_rcd(SEXP nSEXP, SEXP PSEXP, SEXP bSEXP) { |
| 63 | +BEGIN_RCPP |
| 64 | + Rcpp::RObject rcpp_result_gen; |
| 65 | + Rcpp::RNGScope rcpp_rngScope_gen; |
| 66 | + Rcpp::traits::input_parameter< const size_t >::type n(nSEXP); |
| 67 | + Rcpp::traits::input_parameter< const arma::mat& >::type P(PSEXP); |
| 68 | + Rcpp::traits::input_parameter< const arma::vec& >::type b(bSEXP); |
| 69 | + rcpp_result_gen = Rcpp::wrap(rcd(n, P, b)); |
| 70 | + return rcpp_result_gen; |
| 71 | +END_RCPP |
| 72 | +} |
| 73 | + |
| 74 | +static const R_CallMethodDef CallEntries[] = { |
| 75 | + {"_gfilogisreg_get_umax", (DL_FUNC) &_gfilogisreg_get_umax, 2}, |
| 76 | + {"_gfilogisreg_get_vmin_i", (DL_FUNC) &_gfilogisreg_get_vmin_i, 4}, |
| 77 | + {"_gfilogisreg_get_vmin", (DL_FUNC) &_gfilogisreg_get_vmin, 3}, |
| 78 | + {"_gfilogisreg_get_bounds", (DL_FUNC) &_gfilogisreg_get_bounds, 2}, |
| 79 | + {"_gfilogisreg_rcd", (DL_FUNC) &_gfilogisreg_rcd, 3}, |
| 80 | + {NULL, NULL, 0} |
| 81 | +}; |
| 82 | + |
| 83 | +RcppExport void R_init_gfilogisreg(DllInfo *dll) { |
| 84 | + R_registerRoutines(dll, NULL, CallEntries, NULL, NULL); |
| 85 | + R_useDynamicSymbols(dll, FALSE); |
| 86 | +} |
0 commit comments