Skip to main content

softmax_inplace_f64_dispatch

Function softmax_inplace_f64_dispatch 

Source
pub fn softmax_inplace_f64_dispatch(scores: &mut [f64])
Expand description

In-place softmax over an f64 slice (numerically stable).

Computes: subtract max → exp → normalize by sum. Uses SIMD dispatch for max-find, scaling, and sum reduction.