@@ -138,6 +138,30 @@ BEGIN_RCPP
138138 return rcpp_result_gen;
139139END_RCPP
140140}
141+ // first_matching_split_pair
142+ IntegerVector first_matching_split_pair (const RawMatrix x, const RawMatrix table);
143+ RcppExport SEXP _TreeTools_first_matching_split_pair (SEXP xSEXP, SEXP tableSEXP) {
144+ BEGIN_RCPP
145+ Rcpp::RObject rcpp_result_gen;
146+ Rcpp::RNGScope rcpp_rngScope_gen;
147+ Rcpp::traits::input_parameter< const RawMatrix >::type x (xSEXP);
148+ Rcpp::traits::input_parameter< const RawMatrix >::type table (tableSEXP);
149+ rcpp_result_gen = Rcpp::wrap (first_matching_split_pair (x, table));
150+ return rcpp_result_gen;
151+ END_RCPP
152+ }
153+ // first_matching_split_index
154+ int first_matching_split_index (const RawMatrix x, const RawMatrix table);
155+ RcppExport SEXP _TreeTools_first_matching_split_index (SEXP xSEXP, SEXP tableSEXP) {
156+ BEGIN_RCPP
157+ Rcpp::RObject rcpp_result_gen;
158+ Rcpp::RNGScope rcpp_rngScope_gen;
159+ Rcpp::traits::input_parameter< const RawMatrix >::type x (xSEXP);
160+ Rcpp::traits::input_parameter< const RawMatrix >::type table (tableSEXP);
161+ rcpp_result_gen = Rcpp::wrap (first_matching_split_index (x, table));
162+ return rcpp_result_gen;
163+ END_RCPP
164+ }
141165// num_to_parent
142166IntegerVector num_to_parent (const IntegerVector n, const IntegerVector nTip);
143167RcppExport SEXP _TreeTools_num_to_parent (SEXP nSEXP, SEXP nTipSEXP) {
@@ -458,6 +482,8 @@ static const R_CallMethodDef CallEntries[] = {
458482 {" _TreeTools_descendant_edges" , (DL_FUNC) &_TreeTools_descendant_edges, 3 },
459483 {" _TreeTools_descendant_edges_single" , (DL_FUNC) &_TreeTools_descendant_edges_single, 5 },
460484 {" _TreeTools_descendant_tips" , (DL_FUNC) &_TreeTools_descendant_tips, 3 },
485+ {" _TreeTools_first_matching_split_pair" , (DL_FUNC) &_TreeTools_first_matching_split_pair, 2 },
486+ {" _TreeTools_first_matching_split_index" , (DL_FUNC) &_TreeTools_first_matching_split_index, 2 },
461487 {" _TreeTools_num_to_parent" , (DL_FUNC) &_TreeTools_num_to_parent, 2 },
462488 {" _TreeTools_random_parent" , (DL_FUNC) &_TreeTools_random_parent, 2 },
463489 {" _TreeTools_edge_to_num" , (DL_FUNC) &_TreeTools_edge_to_num, 3 },
0 commit comments