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 copy overloads to prevent aliasing for all SciMLOperators
- Added Base.copy methods for all operator types to ensure deep copies
- MatrixOperator, BatchedDiagonalOperator: copy underlying arrays
- FunctionOperator: copy state (u, p) and cache
- ScalarOperator types: copy values
- Composite operators: recursively copy sub-operators
- Immutable operators (Identity, Null): return self
- Added comprehensive tests to verify non-aliasing behavior
This ensures that copy(operator) creates a true independent copy that
doesn't share mutable state with the original operator.
0 commit comments