An error occurred while loading the file. Please try again.
-
Thibault Hallouin authoredea30a948
// Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include "../inst/include/evalhyd.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
// evald_cpp
std::vector<xt::rarray<double>> evald_cpp(SEXP q_obs, SEXP q_prd, Rcpp::StringVector metrics, SEXP q_thr, Rcpp::Nullable<Rcpp::String> events, Rcpp::Nullable<Rcpp::String> transform, Rcpp::Nullable<double> exponent, Rcpp::Nullable<double> epsilon, Rcpp::Nullable<xt::rtensor<double, 3>> t_msk, Rcpp::Nullable<Rcpp::StringMatrix> m_cdt, Rcpp::Nullable<Rcpp::List> bootstrap, Rcpp::Nullable<Rcpp::StringVector> dts, Rcpp::Nullable<int> seed, Rcpp::Nullable<Rcpp::StringVector> diagnostics);
RcppExport SEXP _evalhyd_evald_cpp(SEXP q_obsSEXP, SEXP q_prdSEXP, SEXP metricsSEXP, SEXP q_thrSEXP, SEXP eventsSEXP, SEXP transformSEXP, SEXP exponentSEXP, SEXP epsilonSEXP, SEXP t_mskSEXP, SEXP m_cdtSEXP, SEXP bootstrapSEXP, SEXP dtsSEXP, SEXP seedSEXP, SEXP diagnosticsSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< SEXP >::type q_obs(q_obsSEXP);
Rcpp::traits::input_parameter< SEXP >::type q_prd(q_prdSEXP);
Rcpp::traits::input_parameter< Rcpp::StringVector >::type metrics(metricsSEXP);
Rcpp::traits::input_parameter< SEXP >::type q_thr(q_thrSEXP);
Rcpp::traits::input_parameter< Rcpp::Nullable<Rcpp::String> >::type events(eventsSEXP);
Rcpp::traits::input_parameter< Rcpp::Nullable<Rcpp::String> >::type transform(transformSEXP);
Rcpp::traits::input_parameter< Rcpp::Nullable<double> >::type exponent(exponentSEXP);
Rcpp::traits::input_parameter< Rcpp::Nullable<double> >::type epsilon(epsilonSEXP);
Rcpp::traits::input_parameter< Rcpp::Nullable<xt::rtensor<double, 3>> >::type t_msk(t_mskSEXP);
Rcpp::traits::input_parameter< Rcpp::Nullable<Rcpp::StringMatrix> >::type m_cdt(m_cdtSEXP);
Rcpp::traits::input_parameter< Rcpp::Nullable<Rcpp::List> >::type bootstrap(bootstrapSEXP);
Rcpp::traits::input_parameter< Rcpp::Nullable<Rcpp::StringVector> >::type dts(dtsSEXP);
Rcpp::traits::input_parameter< Rcpp::Nullable<int> >::type seed(seedSEXP);
Rcpp::traits::input_parameter< Rcpp::Nullable<Rcpp::StringVector> >::type diagnostics(diagnosticsSEXP);
rcpp_result_gen = Rcpp::wrap(evald_cpp(q_obs, q_prd, metrics, q_thr, events, transform, exponent, epsilon, t_msk, m_cdt, bootstrap, dts, seed, diagnostics));
return rcpp_result_gen;
END_RCPP
}
// evalp_cpp
std::vector<xt::rarray<double>> evalp_cpp(xt::rtensor<double, 2> q_obs, xt::rtensor<double, 4> q_prd, Rcpp::StringVector metrics, Rcpp::Nullable<xt::rtensor<double, 2>> q_thr, Rcpp::Nullable<Rcpp::String> events, Rcpp::Nullable<Rcpp::NumericVector> c_lvl, Rcpp::Nullable<xt::rtensor<double, 4>> t_msk, Rcpp::Nullable<Rcpp::StringMatrix> m_cdt, Rcpp::Nullable<Rcpp::List> bootstrap, Rcpp::Nullable<Rcpp::StringVector> dts, Rcpp::Nullable<int> seed, Rcpp::Nullable<Rcpp::StringVector> diagnostics);
RcppExport SEXP _evalhyd_evalp_cpp(SEXP q_obsSEXP, SEXP q_prdSEXP, SEXP metricsSEXP, SEXP q_thrSEXP, SEXP eventsSEXP, SEXP c_lvlSEXP, SEXP t_mskSEXP, SEXP m_cdtSEXP, SEXP bootstrapSEXP, SEXP dtsSEXP, SEXP seedSEXP, SEXP diagnosticsSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< xt::rtensor<double, 2> >::type q_obs(q_obsSEXP);
Rcpp::traits::input_parameter< xt::rtensor<double, 4> >::type q_prd(q_prdSEXP);
Rcpp::traits::input_parameter< Rcpp::StringVector >::type metrics(metricsSEXP);
Rcpp::traits::input_parameter< Rcpp::Nullable<xt::rtensor<double, 2>> >::type q_thr(q_thrSEXP);
Rcpp::traits::input_parameter< Rcpp::Nullable<Rcpp::String> >::type events(eventsSEXP);
Rcpp::traits::input_parameter< Rcpp::Nullable<Rcpp::NumericVector> >::type c_lvl(c_lvlSEXP);
Rcpp::traits::input_parameter< Rcpp::Nullable<xt::rtensor<double, 4>> >::type t_msk(t_mskSEXP);
Rcpp::traits::input_parameter< Rcpp::Nullable<Rcpp::StringMatrix> >::type m_cdt(m_cdtSEXP);
Rcpp::traits::input_parameter< Rcpp::Nullable<Rcpp::List> >::type bootstrap(bootstrapSEXP);
Rcpp::traits::input_parameter< Rcpp::Nullable<Rcpp::StringVector> >::type dts(dtsSEXP);
Rcpp::traits::input_parameter< Rcpp::Nullable<int> >::type seed(seedSEXP);
Rcpp::traits::input_parameter< Rcpp::Nullable<Rcpp::StringVector> >::type diagnostics(diagnosticsSEXP);
rcpp_result_gen = Rcpp::wrap(evalp_cpp(q_obs, q_prd, metrics, q_thr, events, c_lvl, t_msk, m_cdt, bootstrap, dts, seed, diagnostics));
return rcpp_result_gen;
END_RCPP
}
static const R_CallMethodDef CallEntries[] = {
{"_evalhyd_evald_cpp", (DL_FUNC) &_evalhyd_evald_cpp, 14},
{"_evalhyd_evalp_cpp", (DL_FUNC) &_evalhyd_evalp_cpp, 12},
{NULL, NULL, 0}
};
RcppExport void R_init_evalhyd(DllInfo *dll) {
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
R_useDynamicSymbols(dll, FALSE);
}
71