ComponentArrays.jl
ComponentArrays.jl copied to clipboard
Implementes structured update
Closes #303
This PR adds update_component_array, a utility function that enables an update to ComponentArray values while maintaining type and structure.
Checklist
-
[x] Appropriate tests were added
-
[x] Any code changes were done in a way that does not break public API
The PR adds a new exported method update_component_array
- [x] All documentation related to code changes were updated
looking for a related code. The closest is the Optimisers.update method. It does something different - updates the tree.
- [x] The new code follows the contributor guidelines, in particular the SciML Style Guide and COLPRAC.
- [x] Any new documentation only uses public API
Ready for the review
Remind myself that this issue and PR exists.