array of unnormalized scores (e.g., utility values)
softmax temperature parameter; higher values sharpen the distribution
Array of normalized weights summing to 1.0 (or NaNs if scores are all -∞).
Computes temperature-scaled softmax weights from an array of unnormalized scores. Formula: wᵢ = e^{β·sᵢ} / ∑ⱼ e^{β·sⱼ}