pub fn clip(input: &ArrayD<f64>, min_val: f64, max_val: f64) -> ArrayD<f64>
Clamp all elements to [min_val, max_val].
[min_val, max_val]