Skip to content

parallelDist

Parallel Distance Matrix Computation using Multiple Threads

v0.2.7 · Sep 27, 2025 · GPL (>= 2)

Description

A fast parallelized alternative to R's native 'dist' function to calculate distance matrices for continuous, binary, and multi-dimensional input matrices, which supports a broad variety of 41 predefined distance functions from the 'stats', 'proxy' and 'dtw' R packages, as well as user- defined functions written in C++. 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 the implementation stays flexible enough to support different DTW step patterns and normalization methods.

Downloads

3.4K

Last 30 days

2200th

10.8K

Last 90 days

48K

Last year

Trend: +4.5% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (19)

Dependency Network

Dependencies Reverse dependencies Rcpp RcppParallel BIDistances FuncDiv ImpactEffectsize LSDinterface MLGL biosensors.usc knnp numbat scistreer AdaptGauss DataVisualizations DatabionicSwarm DistributionOptimization FCPS IncDTW +4 more reverse deps parallelDist

Version History

new 0.2.7 Mar 10, 2026
updated 0.2.7 ← 0.2.6 diff Sep 26, 2025
updated 0.2.6 ← 0.2.4 diff Feb 3, 2022
updated 0.2.3 ← 0.2.2 diff Dec 11, 2018
updated 0.2.4 ← 0.2.3 diff Dec 11, 2018
updated 0.2.2 ← 0.2.1 diff Sep 23, 2018
updated 0.2.1 ← 0.2.0 diff Dec 4, 2017
updated 0.2.0 ← 0.1.1 diff Sep 26, 2017
updated 0.1.1 ← 0.1.0 diff Jun 6, 2017
new 0.1.0 Jun 5, 2017