rcpp_Eucl_distance_NotPar {scGPS} | R Documentation

## Function to calculate Eucledean distance matrix without parallelisation

### Description

Function to calculate Eucledean distance matrix without parallelisation

### Usage

    rcpp_Eucl_distance_NotPar(mat)

### Arguments

`mat` | an R matrix (expression matrix), with cells in rows and genes in columns

### Value

a distance matrix

### Examples

    mat_test <-matrix(rnbinom(100000,mu=0.01, size=10),nrow=1000)
    #library(microbenchmark)
    #microbenchmark(rcpp_Eucl_distance_NotPar(mat_test), dist(mat_test), times=3)

[Package scGPS version 1.2.0 Index]