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 zero and copy dispatches for PreallocationTools types
This commit adds Base.zero and Base.copy methods for all cache types:
- DiffCache
- FixedSizeDiffCache
- LazyBufferCache
- GeneralLazyBufferCache
Key changes:
- Modified struct definitions to allow dual_du to be Nothing
- Added zero methods that create properly zeroed structures
- Added copy methods that create independent deep copies
- Added comprehensive tests for all functionality
- Handles cases where dual_du might be nothing (when ForwardDiff isn't loaded)
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments