Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
mikeingold and github-actions[bot] authored Oct 3, 2024
1 parent 0f3907a commit dd3cdf6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/differentiation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dd3cdf6

Please sign in to comment.