pub fn logsumexp_weighted(a: &[f64], b: &[f64]) -> (f64, f64)Expand description
ln |Σ bᵢ exp(aᵢ)| and the sign of the sum, for weights of either sign (SciPy’s logsumexp
with b and return_sign=True). The log is −∞ with sign 0 when the sum is zero.