Skip to contents

Efficient computation of pairwise squared distances

Usage

compute_squared_distances_cpp(X1, X2)

Arguments

X1

First matrix (n1 x d)

X2

Second matrix (n2 x d)

Value

Distance matrix (n1 x n2)