distance: Compute distances from columns of x to columns of y.

Description Usage Arguments

Description

This version is non-idiomatic to suit the compiler's quirks, and should not be called directly in the R interpreter.

Usage

1
.distance(x, y, nrow, ncol_x, ncol_y, p)

Arguments

x

numeric, first matrix

y

numeric, second matrix

nrow

integer, number of rows in x (or y)

ncol_x

integer, number of columns in x

ncol_y

integer, number of columns in y

p

numeric, Minkowski parameter (e.g., 2 gives Euclidean distance)


nick-ulle/RCompilerExamples documentation built on May 23, 2019, 4:44 p.m.