pub fn negative_squared_distances(
a: &Array2<f32>,
b: &Array2<f32>,
) -> Array2<f32>Expand description
Computes the squared L2 distance between every row of a and every row of
b, negated so a higher score is closer, as an (a.nrows(), b.nrows()) matrix.
Squared distance = ‖a‖² − 2·a·b + ‖b‖².