pub fn project_l2(perturbation: &[f64], epsilon: f64) -> Vec<f64>
Project perturbation onto the L2 ball of radius epsilon.
perturbation
epsilon
If ‖δ‖₂ > ε, the vector is scaled down to have norm exactly ε.