frow_euc_dist: Fast Euclidean distance between rows of two matrics

Description Usage Arguments Details Value

View source: R/RcppExports.R

Description

Fast Euclidean distance between rows of two matrics

Usage

1
frow_euc_dist(x, y, squared = FALSE)

Arguments

x

numeric matrix of dimension n times k

y

numeric matrix of dimension m times k

squared

boolean, if true the squared distance is returned

Details

This calculation should be much faster than using row_pdist. However, it is numerically less stable. Use at own risk.

Value

matrix of dimension n times m where the (i,j)th element is the Euclidean between the ith row of x and the jth row of y


baruuum/btoolbox documentation built on Aug. 17, 2020, 1:29 a.m.