parallelDist: Parallel Distance Matrix Computation using Multiple Threads

A fast parallelized alternative to R's native 'dist' function to calculate distance matrices for continuous, binary, and multi-dimensional input matrices with support for a broad variety of distance functions from the 'stats', 'proxy' and 'dtw' R packages. For ease of use, the 'parDist' function extends the signature of the 'dist' function and uses the same parameter naming conventions as distance methods of existing R packages. The package is mainly implemented in C++ and leverages the 'RcppParallel' package to parallelize the distance computations with the help of the 'TinyThread' library. Furthermore, the 'Armadillo' linear algebra library is used for optimized matrix operations during distance calculations. The curiously recurring template pattern (CRTP) technique is applied to avoid virtual functions, which improves the Dynamic Time Warping calculations while keeping the implementation flexible enough to support different step patterns and normalization methods.

Version: 0.1.1
Imports: Rcpp (≥ 0.12.6), RcppParallel (≥ 4.3.20)
LinkingTo: Rcpp, RcppParallel, RcppArmadillo
Suggests: dtw, ggplot2, proxy, highlight, testthat
Published: 2017-06-07
Author: Alexander Eckert [aut, cre]
Maintainer: Alexander Eckert <info at>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: yes
SystemRequirements: C++11
Materials: README NEWS
CRAN checks: parallelDist results


Reference manual: parallelDist.pdf
Vignettes: parallelDist vignette
Package source: parallelDist_0.1.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
OS X El Capitan binaries: r-release: parallelDist_0.1.1.tgz
OS X Mavericks binaries: r-oldrel: parallelDist_0.1.1.tgz
Old sources: parallelDist archive


Please use the canonical form to link to this page.