fix jacobian(_, AutoFiniteDiff(fdjtype=Val(:central)))#987
fix jacobian(_, AutoFiniteDiff(fdjtype=Val(:central)))#987oscardssmith wants to merge 1 commit intomainfrom
jacobian(_, AutoFiniteDiff(fdjtype=Val(:central)))#987Conversation
FiniteDiff requires `x1==x` for central mode autodiff.
|
If that's true, this is not the correct fix, because preparation can be reused at different points than the original one. The correct fix would be something like |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #987 +/- ##
===========================================
- Coverage 98.21% 12.35% -85.86%
===========================================
Files 135 124 -11
Lines 8000 7763 -237
===========================================
- Hits 7857 959 -6898
- Misses 143 6804 +6661
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Also, we would need to fix all operators and add tests |
|
The actual question is just two things, one, are you passing Secondly, the actual issue from the user looks like just uninitialized memory. FiniteDiff doesn't zero things in its non-allocating functions because it assumes the caller has setup the memory appropriately and doesn't touch things it doesn't differentiate. The solution is just to |
|
@ChrisRackauckas the problem isn't the jacobian. It's |
fixes #983 (comment)
FiniteDiff requires
x1==xfor central mode autodiff.