R/RcppExports.R

Defines functions is_binary_metric rnn_sparse_query rnn_logical_query rnn_query rnn_score_forest rnn_sparse_rp_forest_search rnn_logical_rp_forest_search rnn_rp_forest_search rnn_sparse_rp_forest_implicit_build rnn_logical_rp_forest_implicit_build rnn_rp_forest_implicit_build rnn_sparse_rp_forest_build rnn_rp_forest_build rnn_logical_rp_tree_knn_implicit rnn_rp_tree_knn_implicit rnn_sparse_rp_tree_knn_implicit rnn_sparse_rp_tree_knn_explicit rnn_rp_tree_knn_explicit rnn_sparse_random_knn_query rnn_logical_random_knn_query rnn_random_knn_query rnn_logical_random_knn rnn_random_knn rnn_sparse_random_knn rnn_degree_prune rnn_merge_graph_lists rnn_logical_diversify rnn_diversify rnn_sparse_diversify rnn_sparse_descent rnn_logical_descent rnn_descent rnn_merge_nn_all rnn_sparse_idx_to_graph_query rnn_logical_idx_to_graph_query rnn_idx_to_graph_query rnn_logical_idx_to_graph_self rnn_idx_to_graph_self rnn_sparse_idx_to_graph_self rnn_reverse_nbr_size rnn_sparse_brute_force_query rnn_logical_brute_force_query rnn_brute_force_query rnn_sparse_brute_force rnn_logical_brute_force rnn_brute_force

# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

rnn_brute_force <- function(data, nnbrs, metric = "euclidean", n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_brute_force`, data, nnbrs, metric, n_threads, verbose)
}

rnn_logical_brute_force <- function(data, nnbrs, metric = "euclidean", n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_logical_brute_force`, data, nnbrs, metric, n_threads, verbose)
}

rnn_sparse_brute_force <- function(ind, ptr, data, ndim, nnbrs, metric = "euclidean", n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_sparse_brute_force`, ind, ptr, data, ndim, nnbrs, metric, n_threads, verbose)
}

rnn_brute_force_query <- function(reference, query, nnbrs, metric = "euclidean", n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_brute_force_query`, reference, query, nnbrs, metric, n_threads, verbose)
}

rnn_logical_brute_force_query <- function(reference, query, nnbrs, metric = "euclidean", n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_logical_brute_force_query`, reference, query, nnbrs, metric, n_threads, verbose)
}

rnn_sparse_brute_force_query <- function(ref_ind, ref_ptr, ref_data, query_ind, query_ptr, query_data, ndim, nnbrs, metric = "euclidean", n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_sparse_brute_force_query`, ref_ind, ref_ptr, ref_data, query_ind, query_ptr, query_data, ndim, nnbrs, metric, n_threads, verbose)
}

rnn_reverse_nbr_size <- function(nn_idx, nnbrs, len, include_self = FALSE) {
    .Call(`_rnndescent_rnn_reverse_nbr_size`, nn_idx, nnbrs, len, include_self)
}

rnn_sparse_idx_to_graph_self <- function(ind, ptr, data, ndim, idx, metric = "euclidean", n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_sparse_idx_to_graph_self`, ind, ptr, data, ndim, idx, metric, n_threads, verbose)
}

rnn_idx_to_graph_self <- function(data, idx, metric = "euclidean", n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_idx_to_graph_self`, data, idx, metric, n_threads, verbose)
}

rnn_logical_idx_to_graph_self <- function(data, idx, metric = "euclidean", n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_logical_idx_to_graph_self`, data, idx, metric, n_threads, verbose)
}

rnn_idx_to_graph_query <- function(reference, query, idx, metric = "euclidean", n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_idx_to_graph_query`, reference, query, idx, metric, n_threads, verbose)
}

rnn_logical_idx_to_graph_query <- function(reference, query, idx, metric = "euclidean", n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_logical_idx_to_graph_query`, reference, query, idx, metric, n_threads, verbose)
}

rnn_sparse_idx_to_graph_query <- function(ref_ind, ref_ptr, ref_data, query_ind, query_ptr, query_data, ndim, idx, metric = "euclidean", n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_sparse_idx_to_graph_query`, ref_ind, ref_ptr, ref_data, query_ind, query_ptr, query_data, ndim, idx, metric, n_threads, verbose)
}

rnn_merge_nn_all <- function(nn_graphs, is_query, n_threads, verbose) {
    .Call(`_rnndescent_rnn_merge_nn_all`, nn_graphs, is_query, n_threads, verbose)
}

rnn_descent <- function(data, nn_idx, nn_dist, metric, max_candidates, n_iters, delta, low_memory, weight_by_degree, n_threads, verbose, progress_type) {
    .Call(`_rnndescent_rnn_descent`, data, nn_idx, nn_dist, metric, max_candidates, n_iters, delta, low_memory, weight_by_degree, n_threads, verbose, progress_type)
}

rnn_logical_descent <- function(data, nn_idx, nn_dist, metric, max_candidates, n_iters, delta, low_memory, weight_by_degree, n_threads, verbose, progress_type) {
    .Call(`_rnndescent_rnn_logical_descent`, data, nn_idx, nn_dist, metric, max_candidates, n_iters, delta, low_memory, weight_by_degree, n_threads, verbose, progress_type)
}

rnn_sparse_descent <- function(ind, ptr, data, ndim, nn_idx, nn_dist, metric, max_candidates, n_iters, delta, low_memory, weight_by_degree, n_threads, verbose, progress_type) {
    .Call(`_rnndescent_rnn_sparse_descent`, ind, ptr, data, ndim, nn_idx, nn_dist, metric, max_candidates, n_iters, delta, low_memory, weight_by_degree, n_threads, verbose, progress_type)
}

rnn_sparse_diversify <- function(ind, ptr, data, ndim, graph_list, metric, prune_probability, n_threads, verbose) {
    .Call(`_rnndescent_rnn_sparse_diversify`, ind, ptr, data, ndim, graph_list, metric, prune_probability, n_threads, verbose)
}

rnn_diversify <- function(data, graph_list, metric, prune_probability, n_threads, verbose) {
    .Call(`_rnndescent_rnn_diversify`, data, graph_list, metric, prune_probability, n_threads, verbose)
}

rnn_logical_diversify <- function(data, graph_list, metric, prune_probability, n_threads, verbose) {
    .Call(`_rnndescent_rnn_logical_diversify`, data, graph_list, metric, prune_probability, n_threads, verbose)
}

rnn_merge_graph_lists <- function(graph_list1, graph_list2) {
    .Call(`_rnndescent_rnn_merge_graph_lists`, graph_list1, graph_list2)
}

rnn_degree_prune <- function(graph_list, max_degree, n_threads) {
    .Call(`_rnndescent_rnn_degree_prune`, graph_list, max_degree, n_threads)
}

rnn_sparse_random_knn <- function(ind, ptr, data, ndim, nnbrs, metric = "euclidean", order_by_distance = TRUE, n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_sparse_random_knn`, ind, ptr, data, ndim, nnbrs, metric, order_by_distance, n_threads, verbose)
}

rnn_random_knn <- function(data, nnbrs, metric = "euclidean", order_by_distance = TRUE, n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_random_knn`, data, nnbrs, metric, order_by_distance, n_threads, verbose)
}

rnn_logical_random_knn <- function(data, nnbrs, metric = "euclidean", order_by_distance = TRUE, n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_logical_random_knn`, data, nnbrs, metric, order_by_distance, n_threads, verbose)
}

rnn_random_knn_query <- function(reference, query, nnbrs, metric = "euclidean", order_by_distance = TRUE, n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_random_knn_query`, reference, query, nnbrs, metric, order_by_distance, n_threads, verbose)
}

rnn_logical_random_knn_query <- function(reference, query, nnbrs, metric = "euclidean", order_by_distance = TRUE, n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_logical_random_knn_query`, reference, query, nnbrs, metric, order_by_distance, n_threads, verbose)
}

rnn_sparse_random_knn_query <- function(ref_ind, ref_ptr, ref_data, query_ind, query_ptr, query_data, ndim, nnbrs, metric = "euclidean", order_by_distance = TRUE, n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_sparse_random_knn_query`, ref_ind, ref_ptr, ref_data, query_ind, query_ptr, query_data, ndim, nnbrs, metric, order_by_distance, n_threads, verbose)
}

rnn_rp_tree_knn_explicit <- function(data, nnbrs, metric, n_trees, leaf_size, max_tree_depth, include_self, unzero = TRUE, ret_forest = FALSE, n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_rp_tree_knn_explicit`, data, nnbrs, metric, n_trees, leaf_size, max_tree_depth, include_self, unzero, ret_forest, n_threads, verbose)
}

rnn_sparse_rp_tree_knn_explicit <- function(ind, ptr, data, ndim, nnbrs, metric, n_trees, leaf_size, max_tree_depth, include_self, unzero = TRUE, ret_forest = FALSE, n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_sparse_rp_tree_knn_explicit`, ind, ptr, data, ndim, nnbrs, metric, n_trees, leaf_size, max_tree_depth, include_self, unzero, ret_forest, n_threads, verbose)
}

rnn_sparse_rp_tree_knn_implicit <- function(ind, ptr, data, ndim, nnbrs, metric, n_trees, leaf_size, max_tree_depth, include_self, unzero = TRUE, ret_forest = FALSE, n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_sparse_rp_tree_knn_implicit`, ind, ptr, data, ndim, nnbrs, metric, n_trees, leaf_size, max_tree_depth, include_self, unzero, ret_forest, n_threads, verbose)
}

rnn_rp_tree_knn_implicit <- function(data, nnbrs, metric, n_trees, leaf_size, max_tree_depth, include_self, unzero = TRUE, ret_forest = FALSE, n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_rp_tree_knn_implicit`, data, nnbrs, metric, n_trees, leaf_size, max_tree_depth, include_self, unzero, ret_forest, n_threads, verbose)
}

rnn_logical_rp_tree_knn_implicit <- function(data, nnbrs, metric, n_trees, leaf_size, max_tree_depth, include_self, unzero = TRUE, ret_forest = FALSE, n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_logical_rp_tree_knn_implicit`, data, nnbrs, metric, n_trees, leaf_size, max_tree_depth, include_self, unzero, ret_forest, n_threads, verbose)
}

rnn_rp_forest_build <- function(data, metric, n_trees, leaf_size, max_tree_depth, n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_rp_forest_build`, data, metric, n_trees, leaf_size, max_tree_depth, n_threads, verbose)
}

rnn_sparse_rp_forest_build <- function(ind, ptr, data, ndim, metric, n_trees, leaf_size, max_tree_depth, n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_sparse_rp_forest_build`, ind, ptr, data, ndim, metric, n_trees, leaf_size, max_tree_depth, n_threads, verbose)
}

rnn_rp_forest_implicit_build <- function(data, metric, n_trees, leaf_size, max_tree_depth, n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_rp_forest_implicit_build`, data, metric, n_trees, leaf_size, max_tree_depth, n_threads, verbose)
}

rnn_logical_rp_forest_implicit_build <- function(data, metric, n_trees, leaf_size, max_tree_depth, n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_logical_rp_forest_implicit_build`, data, metric, n_trees, leaf_size, max_tree_depth, n_threads, verbose)
}

rnn_sparse_rp_forest_implicit_build <- function(ind, ptr, data, ndim, metric, n_trees, leaf_size, max_tree_depth, n_threads = 0L, verbose = FALSE) {
    .Call(`_rnndescent_rnn_sparse_rp_forest_implicit_build`, ind, ptr, data, ndim, metric, n_trees, leaf_size, max_tree_depth, n_threads, verbose)
}

rnn_rp_forest_search <- function(query, reference, search_forest, n_nbrs, metric, cache, n_threads, verbose = FALSE) {
    .Call(`_rnndescent_rnn_rp_forest_search`, query, reference, search_forest, n_nbrs, metric, cache, n_threads, verbose)
}

rnn_logical_rp_forest_search <- function(query, reference, search_forest, n_nbrs, metric, cache, n_threads, verbose = FALSE) {
    .Call(`_rnndescent_rnn_logical_rp_forest_search`, query, reference, search_forest, n_nbrs, metric, cache, n_threads, verbose)
}

rnn_sparse_rp_forest_search <- function(ref_ind, ref_ptr, ref_data, query_ind, query_ptr, query_data, ndim, search_forest, n_nbrs, metric, cache, n_threads, verbose = FALSE) {
    .Call(`_rnndescent_rnn_sparse_rp_forest_search`, ref_ind, ref_ptr, ref_data, query_ind, query_ptr, query_data, ndim, search_forest, n_nbrs, metric, cache, n_threads, verbose)
}

rnn_score_forest <- function(idx, search_forest, n_trees, n_threads, verbose = FALSE) {
    .Call(`_rnndescent_rnn_score_forest`, idx, search_forest, n_trees, n_threads, verbose)
}

rnn_query <- function(reference, reference_graph_list, query, nn_idx, nn_dist, metric, epsilon, max_search_fraction, n_threads, verbose) {
    .Call(`_rnndescent_rnn_query`, reference, reference_graph_list, query, nn_idx, nn_dist, metric, epsilon, max_search_fraction, n_threads, verbose)
}

rnn_logical_query <- function(reference, reference_graph_list, query, nn_idx, nn_dist, metric, epsilon, max_search_fraction, n_threads, verbose) {
    .Call(`_rnndescent_rnn_logical_query`, reference, reference_graph_list, query, nn_idx, nn_dist, metric, epsilon, max_search_fraction, n_threads, verbose)
}

rnn_sparse_query <- function(ref_ind, ref_ptr, ref_data, query_ind, query_ptr, query_data, ndim, reference_graph_list, nn_idx, nn_dist, metric, epsilon, max_search_fraction, n_threads, verbose) {
    .Call(`_rnndescent_rnn_sparse_query`, ref_ind, ref_ptr, ref_data, query_ind, query_ptr, query_data, ndim, reference_graph_list, nn_idx, nn_dist, metric, epsilon, max_search_fraction, n_threads, verbose)
}

is_binary_metric <- function(metric) {
    .Call(`_rnndescent_is_binary_metric`, metric)
}
jlmelville/rnndescent documentation built on April 14, 2024, 4:33 p.m.