Numerical computing and tensor library for Rust, in the role of NumPy: n-dimensional arrays, linear algebra, FFT, statistics and autograd on CPU, CUDA and WebGPU
//! Result type of the one-pass cosine reduction.
/// The three sums cosine distance needs, gathered in one pass.
////// The caller turns them into a distance. `metrics::cosine_from_sums` owns that
/// formula, including its `denom == 0 -> 0` rule.
#[derive(Copy, Clone, Debug, PartialEq)]pubstructCosineSums<T>{/// `sum(a[i] * b[i])`.
pubdot: T,
/// `sum(a[i] * a[i])`.
pubnorm_a: T,
/// `sum(b[i] * b[i])`.
pubnorm_b: T,
}