From dd3cdf669e97c75f340c67a79c7a3559a7c15bac Mon Sep 17 00:00:00 2001 From: Michael Ingold Date: Thu, 3 Oct 2024 10:36:39 -0400 Subject: [PATCH] Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- src/differentiation.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/differentiation.jl b/src/differentiation.jl index 8a4fcddc..cc6673f8 100644 --- a/src/differentiation.jl +++ b/src/differentiation.jl @@ -30,9 +30,8 @@ function jacobian( # approximation, where ts is the current parametric position function ∂ₙr(ts, n) # Build left/right parametric coordinates with non-allocating iterators - left = Iterators.map(it -> it[1] == n ? it[2] - ε : it[2], enumerate(ts)) + left = Iterators.map(it -> it[1] == n ? it[2] - ε : it[2], enumerate(ts)) right = Iterators.map(it -> it[1] == n ? it[2] + ε : it[2], enumerate(ts)) - # Select orientation of finite-diff if ts[n] < T(0.01) # Right