From ed2025c83b4487d9bffe18550100b088b31954f4 Mon Sep 17 00:00:00 2001 From: Waldir Leoncio Date: Wed, 12 Jun 2024 13:28:52 +0200 Subject: [PATCH] Added placeholder for `func_MCMC_graph_cpp()` (#11) --- R/RcppExports.R | 4 ++++ src/RcppExports.cpp | 16 ++++++++++++++++ src/func_MCMC_graph_cpp.cpp | 15 +++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 src/func_MCMC_graph_cpp.cpp diff --git a/R/RcppExports.R b/R/RcppExports.R index 8c70180..cbb6c63 100644 --- a/R/RcppExports.R +++ b/R/RcppExports.R @@ -1,6 +1,10 @@ # Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 +func_MCMC_graph_cpp <- function(sobj, hyperpar, ini, S, method, MRF_2b) { + .Call(`_BayesSurvive_func_MCMC_graph_cpp`, sobj, hyperpar, ini, S, method, MRF_2b) +} + settingInterval_cpp <- function(y, delta_, s_, J_) { .Call(`_BayesSurvive_settingInterval_cpp`, y, delta_, s_, J_) } diff --git a/src/RcppExports.cpp b/src/RcppExports.cpp index f13b2ea..4320121 100644 --- a/src/RcppExports.cpp +++ b/src/RcppExports.cpp @@ -11,6 +11,22 @@ Rcpp::Rostream& Rcpp::Rcout = Rcpp::Rcpp_cout_get(); Rcpp::Rostream& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get(); #endif +// func_MCMC_graph_cpp +Rcpp::List func_MCMC_graph_cpp(Rcpp::List sobj, Rcpp::List hyperpar, Rcpp::List ini, uint S, std::string method, bool MRF_2b); +RcppExport SEXP _BayesSurvive_func_MCMC_graph_cpp(SEXP sobjSEXP, SEXP hyperparSEXP, SEXP iniSEXP, SEXP SSEXP, SEXP methodSEXP, SEXP MRF_2bSEXP) { +BEGIN_RCPP + Rcpp::RObject rcpp_result_gen; + Rcpp::RNGScope rcpp_rngScope_gen; + Rcpp::traits::input_parameter< Rcpp::List >::type sobj(sobjSEXP); + Rcpp::traits::input_parameter< Rcpp::List >::type hyperpar(hyperparSEXP); + Rcpp::traits::input_parameter< Rcpp::List >::type ini(iniSEXP); + Rcpp::traits::input_parameter< uint >::type S(SSEXP); + Rcpp::traits::input_parameter< std::string >::type method(methodSEXP); + Rcpp::traits::input_parameter< bool >::type MRF_2b(MRF_2bSEXP); + rcpp_result_gen = Rcpp::wrap(func_MCMC_graph_cpp(sobj, hyperpar, ini, S, method, MRF_2b)); + return rcpp_result_gen; +END_RCPP +} // settingInterval_cpp Rcpp::List settingInterval_cpp(const arma::vec y, const arma::vec delta_, const arma::vec s_, const unsigned int J_); RcppExport SEXP _BayesSurvive_settingInterval_cpp(SEXP ySEXP, SEXP delta_SEXP, SEXP s_SEXP, SEXP J_SEXP) { diff --git a/src/func_MCMC_graph_cpp.cpp b/src/func_MCMC_graph_cpp.cpp new file mode 100644 index 0000000..f728bb8 --- /dev/null +++ b/src/func_MCMC_graph_cpp.cpp @@ -0,0 +1,15 @@ +#include +// [[Rcpp::depends(RcppArmadillo)]] + +// [[Rcpp::export]] +Rcpp::List func_MCMC_graph_cpp( + Rcpp::List sobj, + Rcpp::List hyperpar, + Rcpp::List ini, + uint S, + std::string method, + bool MRF_2b +) { + Rcpp::List out = Rcpp::List::create(); + return out; +}