-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRcppExports.cpp
More file actions
51 lines (45 loc) · 1.98 KB
/
RcppExports.cpp
File metadata and controls
51 lines (45 loc) · 1.98 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
// 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
// fastTrapz
arma::mat fastTrapz(arma::vec x, arma::mat Y, int dim);
RcppExport SEXP _resourcecode_fastTrapz(SEXP xSEXP, SEXP YSEXP, SEXP dimSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< arma::vec >::type x(xSEXP);
Rcpp::traits::input_parameter< arma::mat >::type Y(YSEXP);
Rcpp::traits::input_parameter< int >::type dim(dimSEXP);
rcpp_result_gen = Rcpp::wrap(fastTrapz(x, Y, dim));
return rcpp_result_gen;
END_RCPP
}
// ww_calc_cpp
NumericVector ww_calc_cpp(NumericVector times, double winlen_hours, bool allow_overlap, double tstep_secs);
RcppExport SEXP _resourcecode_ww_calc_cpp(SEXP timesSEXP, SEXP winlen_hoursSEXP, SEXP allow_overlapSEXP, SEXP tstep_secsSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< NumericVector >::type times(timesSEXP);
Rcpp::traits::input_parameter< double >::type winlen_hours(winlen_hoursSEXP);
Rcpp::traits::input_parameter< bool >::type allow_overlap(allow_overlapSEXP);
Rcpp::traits::input_parameter< double >::type tstep_secs(tstep_secsSEXP);
rcpp_result_gen = Rcpp::wrap(ww_calc_cpp(times, winlen_hours, allow_overlap, tstep_secs));
return rcpp_result_gen;
END_RCPP
}
static const R_CallMethodDef CallEntries[] = {
{"_resourcecode_fastTrapz", (DL_FUNC) &_resourcecode_fastTrapz, 3},
{"_resourcecode_ww_calc_cpp", (DL_FUNC) &_resourcecode_ww_calc_cpp, 4},
{NULL, NULL, 0}
};
RcppExport void R_init_resourcecode(DllInfo *dll) {
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
R_useDynamicSymbols(dll, FALSE);
}