pub fn sigmoid(x: &mut [f64])
Logistic sigmoid: σ(x) = 1 / (1 + e^{-x}), element-wise.
σ(x) = 1 / (1 + e^{-x})