useDynLib(castor, .registration=TRUE)
importFrom(naturalsort,naturalsort)
importFrom(stats,nlminb)
importFrom(stats,optim)
importFrom(stats,optimize)
importFrom(stats,runif)
importFrom(stats,setNames)
importFrom(stats,quantile)
importFrom(stats,qt)
importFrom(utils,tail)
importFrom(Rcpp,evalCpp)
importFrom(parallel,mclapply)
export(exponentiate_matrix)
export(get_subtree_with_tips)
export(get_subtree_at_node)
export(find_nearest_tips)
export(find_farthest_tips)
export(get_all_distances_to_root)
export(get_all_node_depths)
export(get_pairwise_mrcas)
export(get_pairwise_distances)
export(get_stationary_distribution)
export(get_tips_for_mrcas)
export(get_trait_depth)
export(get_tree_traversal_root_to_tips)
export(reorder_tree_edges)
export(asr_mk_model)
export(asr_max_parsimony)
export(asr_squared_change_parsimony)
export(asr_independent_contrasts)
export(asr_subtree_averaging)
export(hsp_max_parsimony)
export(hsp_squared_change_parsimony)
export(hsp_independent_contrasts)
export(hsp_mk_model)
export(hsp_subtree_averaging)
export(get_trait_acf)
export(root_at_node)
export(root_at_midpoint)
export(root_in_edge)
export(find_root_of_monophyletic_tips)
export(map_to_state_space)
export(simulate_mk_model)
export(simulate_ou_model)
export(simulate_rou_model)
export(simulate_bm_model)
export(get_random_mk_transition_matrix)
export(get_random_diffusivity_matrix)
export(pick_random_tips)
export(get_mrca_of_set)
export(is_monophyletic)
export(collapse_tree_at_resolution)
export(count_tips_per_node)
export(asr_empirical_probabilities)
export(hsp_empirical_probabilities)
export(generate_random_tree)
export(generate_tree_with_evolving_rates)
export(count_clades_over_time)
export(find_root)
export(write_tree)
export(read_tree)
export(multifurcations_to_bifurcations)
export(collapse_monofurcations)
export(merge_short_edges)
export(get_independent_contrasts)
export(fit_bm_model)
export(root_via_outgroup)
export(fit_tree_model)
export(simulate_diversification_model)
export(reconstruct_past_diversification)
export(get_tree_span)
export(get_trait_stats_over_time)
export(trim_tree_at_height)
export(extend_tree_to_height)
export(date_tree_red)
export(get_reds)
export(congruent_divergence_times)
export(tree_distance)