You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I assume DiffResults predates the bang bang convention. But similar to the discussion in the other thread IMO this behaviour (note that these examples are for immutable arrays!) is not relevant for the point I'm trying to make: When you require/assume mutable containers, then you should directly use the more direct and more efficient inplace function. Bang bang is useful for generic code that accepts both mutable and immutable arrays.
The code in DI is trying to be as generic as possible, but I realized yesterday that every downstream user, myself included, would have to make heavy use of copyto!(x, operator!!(x)) which is suboptimal, so I am indeed working to change that
Just to keep track of the discussion with @devmotion: SciML/OptimizationBase.jl#31 (comment)
The text was updated successfully, but these errors were encountered: