R/RcppExports.R

Defines functions CPP_signcount_int CPP_signcount CPP_similarity_to_distance CPP_dsm_score_sparse CPP_dsm_score_dense CPP_scale_margins_sparse CPP_scale_margins_dense CPP_col_norms_sparse CPP_col_norms_dense CPP_row_norms_sparse CPP_row_norms_dense CPP_random_indexing_sparse CPP_set_openmp_threads CPP_get_openmp_threads CPP_col_dist_sparse CPP_col_dist_dense

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

CPP_col_dist_dense <- function(x, y, metric_code, param1, symmetric) {
    .Call(`_wordspace_CPP_col_dist_dense`, x, y, metric_code, param1, symmetric)
}

CPP_col_dist_sparse <- function(nc1, xp, xrow, x, nc2, yp, yrow, y, metric_code, param1, symmetric) {
    .Call(`_wordspace_CPP_col_dist_sparse`, nc1, xp, xrow, x, nc2, yp, yrow, y, metric_code, param1, symmetric)
}

CPP_get_openmp_threads <- function() {
    .Call(`_wordspace_CPP_get_openmp_threads`)
}

CPP_set_openmp_threads <- function(n) {
    invisible(.Call(`_wordspace_CPP_set_openmp_threads`, n))
}

CPP_random_indexing_sparse <- function(nr, nc, p, row_of, x, n_ri, rate, verbose = TRUE) {
    .Call(`_wordspace_CPP_random_indexing_sparse`, nr, nc, p, row_of, x, n_ri, rate, verbose)
}

CPP_row_norms_dense <- function(x, norm_code, p_norm = 2.0) {
    .Call(`_wordspace_CPP_row_norms_dense`, x, norm_code, p_norm)
}

CPP_row_norms_sparse <- function(nr, nc, p, row_of, x, norm_code, p_norm = 2.0) {
    .Call(`_wordspace_CPP_row_norms_sparse`, nr, nc, p, row_of, x, norm_code, p_norm)
}

CPP_col_norms_dense <- function(x, norm_code, p_norm = 2.0) {
    .Call(`_wordspace_CPP_col_norms_dense`, x, norm_code, p_norm)
}

CPP_col_norms_sparse <- function(nr, nc, p, row_of, x, norm_code, p_norm = 2.0) {
    .Call(`_wordspace_CPP_col_norms_sparse`, nr, nc, p, row_of, x, norm_code, p_norm)
}

CPP_scale_margins_dense <- function(M, rows, cols, duplicate = TRUE) {
    .Call(`_wordspace_CPP_scale_margins_dense`, M, rows, cols, duplicate)
}

CPP_scale_margins_sparse <- function(M, rows, cols, duplicate = TRUE) {
    .Call(`_wordspace_CPP_scale_margins_sparse`, M, rows, cols, duplicate)
}

CPP_dsm_score_dense <- function(f, f1, f2, N, am_code, sparse, transform_code) {
    .Call(`_wordspace_CPP_dsm_score_dense`, f, f1, f2, N, am_code, sparse, transform_code)
}

CPP_dsm_score_sparse <- function(nr, nc, p, row_of, f, f1, f2, N, am_code, sparse, transform_code) {
    .Call(`_wordspace_CPP_dsm_score_sparse`, nr, nc, p, row_of, f, f1, f2, N, am_code, sparse, transform_code)
}

CPP_similarity_to_distance <- function(M, opcode, tol, duplicate = TRUE) {
    .Call(`_wordspace_CPP_similarity_to_distance`, M, opcode, tol, duplicate)
}

CPP_signcount <- function(x) {
    .Call(`_wordspace_CPP_signcount`, x)
}

CPP_signcount_int <- function(x) {
    .Call(`_wordspace_CPP_signcount_int`, x)
}

Try the wordspace package in your browser

Any scripts or data that you put into this service are public.

wordspace documentation built on Aug. 23, 2022, 1:06 a.m.