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:
- Added zero methods that create properly zeroed structures
- Added copy methods that create independent deep copies
- Added comprehensive tests for all functionality
The struct type constraints remain unchanged - dual_du is always
an AbstractArray when the cache is properly constructed.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments