rcpp_parallel_distance: distance matrix using C++

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

This function provides fast and memory efficient distance matrix calculation

Usage

1

Arguments

mat

an R matrix (expression matrix), rows are genes, columns are cells

Value

a distance matrix

Examples

1
2
3
mat_test <-matrix(rnbinom(1000000,mu=0.01, size=10),nrow=10000)
#library(microbenchmark)
#microbenchmark(rcpp_parallel_distance(mat_test), dist(mat_test), times=3)

IMB-Computational-Genomics-Lab/scGPS documentation built on Dec. 6, 2020, 3:20 p.m.