Unprepared operators for ForwardDiff - #414
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #414 +/- ##
==========================================
+ Coverage 96.67% 96.71% +0.03%
==========================================
Files 103 103
Lines 4906 4962 +56
==========================================
+ Hits 4743 4799 +56
Misses 163 163 ☔ View full report in Codecov by Sentry. |
|
For posterity note that it should probably be considered a bug in ForwardDiff that these are needed, since most of the inefficiency in the prepared methods seems to be coming from type instability on the part of ForwardDiff, but considering that a fix for that is not likely to come very soon this is certainly nice to have. |
|
Apparently, ForwardDiff's StaticArrays extension just ignores the config object which I create during preparation, and whose preparation causes type instability. With these new unprepared functions we should hit the right shortcuts |
Versions
Extensions