pub fn estimate_gradients_2d_global(
tri: &TriangulationIndex,
values: &[f64],
tol: f64,
max_iterations: usize,
) -> Vec<[f64; 2]>Expand description
Gradient estimates at the vertices that minimise the integrated squared second derivative of
the Clough-Tocher interpolant along every edge (Nielson’s global method, SciPy’s
estimate_gradients_2d_global). Each vertex’s 2 × 2 local problem is solved in turn with the
current estimates at its neighbours (Gauss-Seidel), until the largest change is below tol
(relative to the gradient, or absolute when it is below 1) or after max_iterations sweeps.