-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRcppExports.cpp
More file actions
69 lines (63 loc) · 3.05 KB
/
RcppExports.cpp
File metadata and controls
69 lines (63 loc) · 3.05 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// 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
}
// rasterize_triangles
List rasterize_triangles(NumericMatrix tri_mat, NumericVector x, NumericVector y, NumericVector z, int nx, int ny, bool draw_edges);
RcppExport SEXP _resourcecode_rasterize_triangles(SEXP tri_matSEXP, SEXP xSEXP, SEXP ySEXP, SEXP zSEXP, SEXP nxSEXP, SEXP nySEXP, SEXP draw_edgesSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< NumericMatrix >::type tri_mat(tri_matSEXP);
Rcpp::traits::input_parameter< NumericVector >::type x(xSEXP);
Rcpp::traits::input_parameter< NumericVector >::type y(ySEXP);
Rcpp::traits::input_parameter< NumericVector >::type z(zSEXP);
Rcpp::traits::input_parameter< int >::type nx(nxSEXP);
Rcpp::traits::input_parameter< int >::type ny(nySEXP);
Rcpp::traits::input_parameter< bool >::type draw_edges(draw_edgesSEXP);
rcpp_result_gen = Rcpp::wrap(rasterize_triangles(tri_mat, x, y, z, nx, ny, draw_edges));
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_rasterize_triangles", (DL_FUNC) &_resourcecode_rasterize_triangles, 7},
{"_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);
}