pub fn softmax_row(row: &mut [f32])
In-place softmax over a contiguous row.
Uses the numerically stable formulation: subtract max, exponentiate, normalize.