Skip to content

Remove special cases for AbstractFiniteDifference#94

Closed
devmotion wants to merge 1 commit intomasterfrom
dw/finitedifferences
Closed

Remove special cases for AbstractFiniteDifference#94
devmotion wants to merge 1 commit intomasterfrom
dw/finitedifferences

Conversation

@devmotion
Copy link
Member

Based on the discussion in #2, it seems the special cases for AbstractFiniteDifference only exist because FiniteDifferences mutated the inputs in previous releases (also, the checks don't seem completely consistent). This FiniteDifference behaviour was a bug and fixed in version 0.12.28 (JuliaDiff/FiniteDifferences.jl#223).

This PR removes the special cases and checks if tests pass with the latest FiniteDifferences release.

@devmotion
Copy link
Member Author

Completely missed that of course in finite differencing the differentiated function might be called the first time with different inputs - and that this is the reason for the FiniteDifference branches, not the bug in FiniteDifferences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant