Provides functions use_distops() and use_distance() for package developers to define TBB-parallelized functions to compute pairwise distance matrices using a custom C++-implemented distance function.
Provides subset operator [.dist to subset a distance matrix. The returned object is either of class dist if both row and column indices are identical or of class matrix if both row and column indices are different.
Provides function find_medoids(D, memberships = NULL) to find medoid(s) of a distance matrix. If memberships is provided, one medoid per cluster is returned. Otherwise, a single overall medoid is returned.