fastDist {roots} | R Documentation |
Fast vectorised Euclidean distance calculator
fastDist(x, squared = FALSE)
x |
Matrix with vectors in columns. |
squared |
Will not perform the square root, i.e. will return the squared ‘L2-norm’. |
Calculates Euclidean distances between vectors arranged as columns in a matrix.
Returns a matrix of pairwise distances
Wajid Jawaid
## Not run:
dist <- fastDist(x)
## End(Not run)