Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Non allocating versions for StaticArrays #276

Merged
merged 5 commits into from
Dec 6, 2023
Merged

Non allocating versions for StaticArrays #276

merged 5 commits into from
Dec 6, 2023

Conversation

avik-pal
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Dec 4, 2023

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (93b7789) 86.23% compared to head (7a8170f) 85.98%.

Files Patch % Lines
src/highlevel/common.jl 75.00% 6 Missing ⚠️
src/highlevel/forward_mode.jl 0.00% 4 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

@avik-pal avik-pal marked this pull request as ready for review December 5, 2023 16:02
@@ -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
Copy link
Member

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?

Copy link
Contributor Author

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.

@avik-pal avik-pal closed this Dec 6, 2023
@avik-pal avik-pal reopened this Dec 6, 2023
@avik-pal
Copy link
Contributor Author

avik-pal commented Dec 6, 2023

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 😓

@ChrisRackauckas ChrisRackauckas merged commit 84de29e into JuliaDiff:master Dec 6, 2023
@avik-pal avik-pal deleted the ap/improve_immutables branch December 7, 2023 00:14
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants