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

CRAN

3.6K

Last 30 days

2118th

11K

Last 90 days

52.3K

Last year

Trend: -3.1% (30d vs prior 30d)

r2u CRAN

79

Last 30 days

281

Last 90 days

1.2K

Last year

Trend: -43.2% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 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-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 Apr 22, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/parallelDist.Rcheck/00install.out' for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (20)

Dependency Network

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

Version History

10 tracked
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.4 ← 0.2.3 diff Dec 11, 2018
updated 0.2.3 ← 0.2.2 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