JuliaDiff / FiniteDiff.jl

Fast non-allocating calculations of gradients, Jacobians, and Hessians with sparsity support
http://juliadiff.org/FiniteDiff.jl/
Other
247 stars 38 forks source link

Non-allocating GradientCache and support for Setfield #145

Closed DanielVandH closed 2 years ago

DanielVandH commented 2 years ago

Fix for #141.

Not sure why this method still has a couple of allocations, though? See the broken tests in Line 345

ChrisRackauckas commented 2 years ago

Merging so the formatting changes go in at least. Profile it to see where the allocations are.

DanielVandH commented 2 years ago

That's what I did initially (profiling), but it showed me 0 allocations - not consistent with the @allocated results. Not sure what's up there. I'll try and look into it another time when I've got a chance.