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
Add resize! dispatch for DiffCache and FixedSizeDiffCache
This commit adds resize! methods for DiffCache and FixedSizeDiffCache structs
to fix resize! operations in downstream packages like Trixi.jl. The implementation
resizes the internal arrays (du, dual_du, any_du) appropriately, with proper
handling for vector vs non-vector arrays.
- Added Base.resize! methods for both DiffCache and FixedSizeDiffCache
- Only resizes vector arrays (throws error for non-vectors since resize! doesn't work on matrices)
- Added ForwardDiff to weakdeps in Project.toml (was missing)
- Added comprehensive tests for resize! functionality
- Formatted code with JuliaFormatter using SciMLStyle
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments