Function cdist_sq_euclidean

Function Documentation

arma::mat cdist_sq_euclidean(const arma::mat arr_a, const arma::mat arr_b)

Calculates the pairwise square euclidean distances from each point in X to each point in Y

Parameters:
  • arr_a – Martix A

  • arr_b – Matrix B

Returns:

A matrix of squared distances between each pair of rows in arr_a and arr_b.