-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non allocating versions for StaticArrays #276
Non allocating versions for StaticArrays #276
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #276 +/- ##
==========================================
- Coverage 86.23% 85.98% -0.25%
==========================================
Files 22 22
Lines 1293 1313 +20
==========================================
+ Hits 1115 1129 +14
- Misses 178 184 +6 ☔ View full report in Codecov by Sentry. |
src/highlevel/finite_diff.jl
Outdated
@@ -10,6 +10,7 @@ __getfield(c::FiniteDiffJacobianCache, ::Val{:jac_prototype}) = c.jac_prototype | |||
|
|||
function sparse_jacobian_cache(fd::Union{AutoSparseFiniteDiff, AutoFiniteDiff}, | |||
sd::AbstractMaybeSparsityDetection, f::F, x; fx = nothing) where {F} | |||
x = __make_mutable(x) # FiniteDiff is bad at handling immutables |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how so? What is wrong with those dispatches?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed it without this. Ig the assumption there is if J
is mutable, x
is implicitly assumed to be mutable in FiniteDiff, which is a reasonable assumption.
The NonlinearSolve failures are fine here, it wasn't handling StaticArrays correctly in the first place, once the new PR is in, the failures should be patched. It is taking forever to finish because its printing like 25k lines of error 😓 |
No description provided.