pub fn gradient(y: &[f64], t: &[f64]) -> Vec<f64>Expand description
Numerical gradient that auto-detects uniform vs non-uniform grids.
If the grid t is uniformly spaced (max|Δt_i − Δt_0| < ε), dispatches to
gradient_uniform for optimal accuracy. Otherwise falls back to
gradient_nonuniform.