// Generated by using Rcpp::compileAttributes() -> do not edit by hand // Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 #include #include using namespace Rcpp; #ifdef RCPP_USE_GLOBAL_ROSTREAM Rcpp::Rostream& Rcpp::Rcout = Rcpp::Rcpp_cout_get(); Rcpp::Rostream& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get(); #endif // rcpp_centrality Rcpp::NumericVector rcpp_centrality(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, const std::string& heap_type, const double dist_threshold, const bool edge_centrality, const int sample); RcppExport SEXP _dodgr_rcpp_centrality(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP heap_typeSEXP, SEXP dist_thresholdSEXP, SEXP edge_centralitySEXP, SEXP sampleSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); Rcpp::traits::input_parameter< const double >::type dist_threshold(dist_thresholdSEXP); Rcpp::traits::input_parameter< const bool >::type edge_centrality(edge_centralitySEXP); Rcpp::traits::input_parameter< const int >::type sample(sampleSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_centrality(graph, vert_map_in, heap_type, dist_threshold, edge_centrality, sample)); return rcpp_result_gen; END_RCPP } // rcpp_concaveman Rcpp::DataFrame rcpp_concaveman(Rcpp::DataFrame xy, Rcpp::NumericVector hull_in, const double concavity, const double length_threshold); RcppExport SEXP _dodgr_rcpp_concaveman(SEXP xySEXP, SEXP hull_inSEXP, SEXP concavitySEXP, SEXP length_thresholdSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< Rcpp::DataFrame >::type xy(xySEXP); Rcpp::traits::input_parameter< Rcpp::NumericVector >::type hull_in(hull_inSEXP); Rcpp::traits::input_parameter< const double >::type concavity(concavitySEXP); Rcpp::traits::input_parameter< const double >::type length_threshold(length_thresholdSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_concaveman(xy, hull_in, concavity, length_threshold)); return rcpp_result_gen; END_RCPP } // rcpp_deduplicate Rcpp::DataFrame rcpp_deduplicate(const Rcpp::DataFrame& graph, const std::string fr_col, const std::string to_col, const std::string d_col, const std::string t_col); RcppExport SEXP _dodgr_rcpp_deduplicate(SEXP graphSEXP, SEXP fr_colSEXP, SEXP to_colSEXP, SEXP d_colSEXP, SEXP t_colSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame& >::type graph(graphSEXP); Rcpp::traits::input_parameter< const std::string >::type fr_col(fr_colSEXP); Rcpp::traits::input_parameter< const std::string >::type to_col(to_colSEXP); Rcpp::traits::input_parameter< const std::string >::type d_col(d_colSEXP); Rcpp::traits::input_parameter< const std::string >::type t_col(t_colSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_deduplicate(graph, fr_col, to_col, d_col, t_col)); return rcpp_result_gen; END_RCPP } // rcpp_aggregate_to_sf Rcpp::List rcpp_aggregate_to_sf(const Rcpp::DataFrame& graph_full, const Rcpp::DataFrame& graph_contr, const Rcpp::DataFrame& edge_map); RcppExport SEXP _dodgr_rcpp_aggregate_to_sf(SEXP graph_fullSEXP, SEXP graph_contrSEXP, SEXP edge_mapSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame& >::type graph_full(graph_fullSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame& >::type graph_contr(graph_contrSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame& >::type edge_map(edge_mapSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_aggregate_to_sf(graph_full, graph_contr, edge_map)); return rcpp_result_gen; END_RCPP } // rcpp_flows_aggregate_par Rcpp::NumericVector rcpp_flows_aggregate_par(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi_in, Rcpp::NumericMatrix flows, const bool norm_sums, const double tol, const std::string heap_type); RcppExport SEXP _dodgr_rcpp_flows_aggregate_par(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toi_inSEXP, SEXP flowsSEXP, SEXP norm_sumsSEXP, SEXP tolSEXP, SEXP heap_typeSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi_in(toi_inSEXP); Rcpp::traits::input_parameter< Rcpp::NumericMatrix >::type flows(flowsSEXP); Rcpp::traits::input_parameter< const bool >::type norm_sums(norm_sumsSEXP); Rcpp::traits::input_parameter< const double >::type tol(tolSEXP); Rcpp::traits::input_parameter< const std::string >::type heap_type(heap_typeSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_flows_aggregate_par(graph, vert_map_in, fromi, toi_in, flows, norm_sums, tol, heap_type)); return rcpp_result_gen; END_RCPP } // rcpp_flows_aggregate_pairwise Rcpp::NumericVector rcpp_flows_aggregate_pairwise(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi, Rcpp::NumericVector flows, const bool norm_sums, const double tol, const std::string heap_type); RcppExport SEXP _dodgr_rcpp_flows_aggregate_pairwise(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toiSEXP, SEXP flowsSEXP, SEXP norm_sumsSEXP, SEXP tolSEXP, SEXP heap_typeSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi(toiSEXP); Rcpp::traits::input_parameter< Rcpp::NumericVector >::type flows(flowsSEXP); Rcpp::traits::input_parameter< const bool >::type norm_sums(norm_sumsSEXP); Rcpp::traits::input_parameter< const double >::type tol(tolSEXP); Rcpp::traits::input_parameter< const std::string >::type heap_type(heap_typeSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_flows_aggregate_pairwise(graph, vert_map_in, fromi, toi, flows, norm_sums, tol, heap_type)); return rcpp_result_gen; END_RCPP } // rcpp_flows_disperse_par Rcpp::NumericVector rcpp_flows_disperse_par(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::NumericVector k, Rcpp::NumericVector dens, const double& tol, std::string heap_type); RcppExport SEXP _dodgr_rcpp_flows_disperse_par(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP kSEXP, SEXP densSEXP, SEXP tolSEXP, SEXP heap_typeSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::NumericVector >::type k(kSEXP); Rcpp::traits::input_parameter< Rcpp::NumericVector >::type dens(densSEXP); Rcpp::traits::input_parameter< const double& >::type tol(tolSEXP); Rcpp::traits::input_parameter< std::string >::type heap_type(heap_typeSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_flows_disperse_par(graph, vert_map_in, fromi, k, dens, tol, heap_type)); return rcpp_result_gen; END_RCPP } // rcpp_flows_si Rcpp::NumericVector rcpp_flows_si(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi_in, Rcpp::NumericVector kvec, Rcpp::NumericVector dens_from, Rcpp::NumericVector dens_to, const bool norm_sums, const double tol, const std::string heap_type); RcppExport SEXP _dodgr_rcpp_flows_si(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toi_inSEXP, SEXP kvecSEXP, SEXP dens_fromSEXP, SEXP dens_toSEXP, SEXP norm_sumsSEXP, SEXP tolSEXP, SEXP heap_typeSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi_in(toi_inSEXP); Rcpp::traits::input_parameter< Rcpp::NumericVector >::type kvec(kvecSEXP); Rcpp::traits::input_parameter< Rcpp::NumericVector >::type dens_from(dens_fromSEXP); Rcpp::traits::input_parameter< Rcpp::NumericVector >::type dens_to(dens_toSEXP); Rcpp::traits::input_parameter< const bool >::type norm_sums(norm_sumsSEXP); Rcpp::traits::input_parameter< const double >::type tol(tolSEXP); Rcpp::traits::input_parameter< const std::string >::type heap_type(heap_typeSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_flows_si(graph, vert_map_in, fromi, toi_in, kvec, dens_from, dens_to, norm_sums, tol, heap_type)); return rcpp_result_gen; END_RCPP } // rcpp_fundamental_cycles Rcpp::List rcpp_fundamental_cycles(Rcpp::DataFrame graph, Rcpp::DataFrame verts); RcppExport SEXP _dodgr_rcpp_fundamental_cycles(SEXP graphSEXP, SEXP vertsSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< Rcpp::DataFrame >::type verts(vertsSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_fundamental_cycles(graph, verts)); return rcpp_result_gen; END_RCPP } // rcpp_contract_graph Rcpp::List rcpp_contract_graph(const Rcpp::DataFrame& graph, Rcpp::Nullable & vertlist_in); RcppExport SEXP _dodgr_rcpp_contract_graph(SEXP graphSEXP, SEXP vertlist_inSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame& >::type graph(graphSEXP); Rcpp::traits::input_parameter< Rcpp::Nullable & >::type vertlist_in(vertlist_inSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_contract_graph(graph, vertlist_in)); return rcpp_result_gen; END_RCPP } // rcpp_merge_cols Rcpp::NumericVector rcpp_merge_cols(Rcpp::DataFrame graph); RcppExport SEXP _dodgr_rcpp_merge_cols(SEXP graphSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< Rcpp::DataFrame >::type graph(graphSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_merge_cols(graph)); return rcpp_result_gen; END_RCPP } // rcpp_sample_graph Rcpp::StringVector rcpp_sample_graph(Rcpp::DataFrame graph, size_t nverts_to_sample); RcppExport SEXP _dodgr_rcpp_sample_graph(SEXP graphSEXP, SEXP nverts_to_sampleSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< size_t >::type nverts_to_sample(nverts_to_sampleSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_sample_graph(graph, nverts_to_sample)); return rcpp_result_gen; END_RCPP } // rcpp_get_component_vector Rcpp::List rcpp_get_component_vector(const Rcpp::DataFrame& graph); RcppExport SEXP _dodgr_rcpp_get_component_vector(SEXP graphSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame& >::type graph(graphSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_component_vector(graph)); return rcpp_result_gen; END_RCPP } // rcpp_unique_rownames Rcpp::DataFrame rcpp_unique_rownames(Rcpp::DataFrame xyfrom, Rcpp::DataFrame xyto, const int precision); RcppExport SEXP _dodgr_rcpp_unique_rownames(SEXP xyfromSEXP, SEXP xytoSEXP, SEXP precisionSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< Rcpp::DataFrame >::type xyfrom(xyfromSEXP); Rcpp::traits::input_parameter< Rcpp::DataFrame >::type xyto(xytoSEXP); Rcpp::traits::input_parameter< const int >::type precision(precisionSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_unique_rownames(xyfrom, xyto, precision)); return rcpp_result_gen; END_RCPP } // rcpp_points_index_par Rcpp::IntegerVector rcpp_points_index_par(const Rcpp::DataFrame& xy, Rcpp::DataFrame& pts); RcppExport SEXP _dodgr_rcpp_points_index_par(SEXP xySEXP, SEXP ptsSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame& >::type xy(xySEXP); Rcpp::traits::input_parameter< Rcpp::DataFrame& >::type pts(ptsSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_points_index_par(xy, pts)); return rcpp_result_gen; END_RCPP } // rcpp_points_to_edges_par Rcpp::NumericVector rcpp_points_to_edges_par(const Rcpp::DataFrame& graph, Rcpp::DataFrame& pts); RcppExport SEXP _dodgr_rcpp_points_to_edges_par(SEXP graphSEXP, SEXP ptsSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame& >::type graph(graphSEXP); Rcpp::traits::input_parameter< Rcpp::DataFrame& >::type pts(ptsSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_points_to_edges_par(graph, pts)); return rcpp_result_gen; END_RCPP } // rcpp_get_sp_dists_par Rcpp::NumericMatrix rcpp_get_sp_dists_par(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi_in, const std::string& heap_type, const bool is_spatial); RcppExport SEXP _dodgr_rcpp_get_sp_dists_par(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toi_inSEXP, SEXP heap_typeSEXP, SEXP is_spatialSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi_in(toi_inSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); Rcpp::traits::input_parameter< const bool >::type is_spatial(is_spatialSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_sp_dists_par(graph, vert_map_in, fromi, toi_in, heap_type, is_spatial)); return rcpp_result_gen; END_RCPP } // rcpp_get_sp_dists_nearest Rcpp::NumericVector rcpp_get_sp_dists_nearest(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi_in, const std::string& heap_type); RcppExport SEXP _dodgr_rcpp_get_sp_dists_nearest(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toi_inSEXP, SEXP heap_typeSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi_in(toi_inSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_sp_dists_nearest(graph, vert_map_in, fromi, toi_in, heap_type)); return rcpp_result_gen; END_RCPP } // rcpp_get_sp_dists_paired_par Rcpp::NumericMatrix rcpp_get_sp_dists_paired_par(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi, const std::string& heap_type, const bool is_spatial); RcppExport SEXP _dodgr_rcpp_get_sp_dists_paired_par(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toiSEXP, SEXP heap_typeSEXP, SEXP is_spatialSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi(toiSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); Rcpp::traits::input_parameter< const bool >::type is_spatial(is_spatialSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_sp_dists_paired_par(graph, vert_map_in, fromi, toi, heap_type, is_spatial)); return rcpp_result_gen; END_RCPP } // rcpp_get_iso Rcpp::NumericMatrix rcpp_get_iso(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::NumericVector dlim, const std::string& heap_type); RcppExport SEXP _dodgr_rcpp_get_iso(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP dlimSEXP, SEXP heap_typeSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::NumericVector >::type dlim(dlimSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_iso(graph, vert_map_in, fromi, dlim, heap_type)); return rcpp_result_gen; END_RCPP } // rcpp_get_sp_dists Rcpp::NumericMatrix rcpp_get_sp_dists(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi_in, const std::string& heap_type); RcppExport SEXP _dodgr_rcpp_get_sp_dists(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toi_inSEXP, SEXP heap_typeSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi_in(toi_inSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_sp_dists(graph, vert_map_in, fromi, toi_in, heap_type)); return rcpp_result_gen; END_RCPP } // rcpp_get_paths Rcpp::List rcpp_get_paths(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi_in, const std::string& heap_type); RcppExport SEXP _dodgr_rcpp_get_paths(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toi_inSEXP, SEXP heap_typeSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi_in(toi_inSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_paths(graph, vert_map_in, fromi, toi_in, heap_type)); return rcpp_result_gen; END_RCPP } // rcpp_get_paths_pairwise Rcpp::List rcpp_get_paths_pairwise(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi_in, const std::string& heap_type); RcppExport SEXP _dodgr_rcpp_get_paths_pairwise(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toi_inSEXP, SEXP heap_typeSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi_in(toi_inSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_paths_pairwise(graph, vert_map_in, fromi, toi_in, heap_type)); return rcpp_result_gen; END_RCPP } // rcpp_get_sp_dists_categorical Rcpp::NumericMatrix rcpp_get_sp_dists_categorical(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi_in, const std::string& heap_type, const bool proportions_only); RcppExport SEXP _dodgr_rcpp_get_sp_dists_categorical(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toi_inSEXP, SEXP heap_typeSEXP, SEXP proportions_onlySEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi_in(toi_inSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); Rcpp::traits::input_parameter< const bool >::type proportions_only(proportions_onlySEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_sp_dists_categorical(graph, vert_map_in, fromi, toi_in, heap_type, proportions_only)); return rcpp_result_gen; END_RCPP } // rcpp_get_sp_dists_categ_paired Rcpp::NumericMatrix rcpp_get_sp_dists_categ_paired(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi_in, const std::string& heap_type); RcppExport SEXP _dodgr_rcpp_get_sp_dists_categ_paired(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toi_inSEXP, SEXP heap_typeSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi_in(toi_inSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_sp_dists_categ_paired(graph, vert_map_in, fromi, toi_in, heap_type)); return rcpp_result_gen; END_RCPP } // rcpp_get_sp_dists_cat_threshold Rcpp::NumericMatrix rcpp_get_sp_dists_cat_threshold(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, const double dlimit, const std::string& heap_type); RcppExport SEXP _dodgr_rcpp_get_sp_dists_cat_threshold(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP dlimitSEXP, SEXP heap_typeSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< const double >::type dlimit(dlimitSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_sp_dists_cat_threshold(graph, vert_map_in, fromi, dlimit, heap_type)); return rcpp_result_gen; END_RCPP } // rcpp_gen_hash Rcpp::CharacterVector rcpp_gen_hash(const int n, const size_t hash_len); RcppExport SEXP _dodgr_rcpp_gen_hash(SEXP nSEXP, SEXP hash_lenSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const int >::type n(nSEXP); Rcpp::traits::input_parameter< const size_t >::type hash_len(hash_lenSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_gen_hash(n, hash_len)); return rcpp_result_gen; END_RCPP } // rcpp_sf_as_network Rcpp::List rcpp_sf_as_network(const Rcpp::List& sf_lines, const Rcpp::DataFrame& pr); RcppExport SEXP _dodgr_rcpp_sf_as_network(SEXP sf_linesSEXP, SEXP prSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::List& >::type sf_lines(sf_linesSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame& >::type pr(prSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_sf_as_network(sf_lines, pr)); return rcpp_result_gen; END_RCPP } // rcpp_route_times Rcpp::List rcpp_route_times(const Rcpp::DataFrame graph, bool left_side, int turn_penalty); RcppExport SEXP _dodgr_rcpp_route_times(SEXP graphSEXP, SEXP left_sideSEXP, SEXP turn_penaltySEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< bool >::type left_side(left_sideSEXP); Rcpp::traits::input_parameter< int >::type turn_penalty(turn_penaltySEXP); rcpp_result_gen = Rcpp::wrap(rcpp_route_times(graph, left_side, turn_penalty)); return rcpp_result_gen; END_RCPP } static const R_CallMethodDef CallEntries[] = { {"_dodgr_rcpp_centrality", (DL_FUNC) &_dodgr_rcpp_centrality, 6}, {"_dodgr_rcpp_concaveman", (DL_FUNC) &_dodgr_rcpp_concaveman, 4}, {"_dodgr_rcpp_deduplicate", (DL_FUNC) &_dodgr_rcpp_deduplicate, 5}, {"_dodgr_rcpp_aggregate_to_sf", (DL_FUNC) &_dodgr_rcpp_aggregate_to_sf, 3}, {"_dodgr_rcpp_flows_aggregate_par", (DL_FUNC) &_dodgr_rcpp_flows_aggregate_par, 8}, {"_dodgr_rcpp_flows_aggregate_pairwise", (DL_FUNC) &_dodgr_rcpp_flows_aggregate_pairwise, 8}, {"_dodgr_rcpp_flows_disperse_par", (DL_FUNC) &_dodgr_rcpp_flows_disperse_par, 7}, {"_dodgr_rcpp_flows_si", (DL_FUNC) &_dodgr_rcpp_flows_si, 10}, {"_dodgr_rcpp_fundamental_cycles", (DL_FUNC) &_dodgr_rcpp_fundamental_cycles, 2}, {"_dodgr_rcpp_contract_graph", (DL_FUNC) &_dodgr_rcpp_contract_graph, 2}, {"_dodgr_rcpp_merge_cols", (DL_FUNC) &_dodgr_rcpp_merge_cols, 1}, {"_dodgr_rcpp_sample_graph", (DL_FUNC) &_dodgr_rcpp_sample_graph, 2}, {"_dodgr_rcpp_get_component_vector", (DL_FUNC) &_dodgr_rcpp_get_component_vector, 1}, {"_dodgr_rcpp_unique_rownames", (DL_FUNC) &_dodgr_rcpp_unique_rownames, 3}, {"_dodgr_rcpp_points_index_par", (DL_FUNC) &_dodgr_rcpp_points_index_par, 2}, {"_dodgr_rcpp_points_to_edges_par", (DL_FUNC) &_dodgr_rcpp_points_to_edges_par, 2}, {"_dodgr_rcpp_get_sp_dists_par", (DL_FUNC) &_dodgr_rcpp_get_sp_dists_par, 6}, {"_dodgr_rcpp_get_sp_dists_nearest", (DL_FUNC) &_dodgr_rcpp_get_sp_dists_nearest, 5}, {"_dodgr_rcpp_get_sp_dists_paired_par", (DL_FUNC) &_dodgr_rcpp_get_sp_dists_paired_par, 6}, {"_dodgr_rcpp_get_iso", (DL_FUNC) &_dodgr_rcpp_get_iso, 5}, {"_dodgr_rcpp_get_sp_dists", (DL_FUNC) &_dodgr_rcpp_get_sp_dists, 5}, {"_dodgr_rcpp_get_paths", (DL_FUNC) &_dodgr_rcpp_get_paths, 5}, {"_dodgr_rcpp_get_paths_pairwise", (DL_FUNC) &_dodgr_rcpp_get_paths_pairwise, 5}, {"_dodgr_rcpp_get_sp_dists_categorical", (DL_FUNC) &_dodgr_rcpp_get_sp_dists_categorical, 6}, {"_dodgr_rcpp_get_sp_dists_categ_paired", (DL_FUNC) &_dodgr_rcpp_get_sp_dists_categ_paired, 5}, {"_dodgr_rcpp_get_sp_dists_cat_threshold", (DL_FUNC) &_dodgr_rcpp_get_sp_dists_cat_threshold, 5}, {"_dodgr_rcpp_gen_hash", (DL_FUNC) &_dodgr_rcpp_gen_hash, 2}, {"_dodgr_rcpp_sf_as_network", (DL_FUNC) &_dodgr_rcpp_sf_as_network, 2}, {"_dodgr_rcpp_route_times", (DL_FUNC) &_dodgr_rcpp_route_times, 3}, {NULL, NULL, 0} }; RcppExport void R_init_dodgr(DllInfo *dll) { R_registerRoutines(dll, NULL, CallEntries, NULL, NULL); R_useDynamicSymbols(dll, FALSE); }