Skip to contents

Computes a Euclidean-squared distance matrix rapidly

Usage

compute_distance_matrix_cpp_wrap(X)

Arguments

X

A numeric matrix with n rows representing each subject and p columns which are measurements on each subject

Value

The n x n Euclidean distances squared

Author

Adam Kapelner

Examples

if (FALSE) { # \dontrun{
X = matrix(c(0, 1, 2, 3), nrow = 2)
compute_distance_matrix_cpp_wrap(X)
} # }