// Copyright (C) 2025 Piotr Jabłoński
// Extended copyright information can be found in the LICENSE file.
use Backend;
use Tensor;
/// Compute pairwise squared Euclidean distances.
///
/// # Params
/// - `x1`: Embeddings of shape [batch, dim],
/// - `x2`: Centroids of shape [clusters, dim].
///
/// # Returns
/// A matrix of shape [batch, clusters] with squared distances.
pub