Skip to content

Add deepcopy_internal method for GeneratedFunctionWrappers - #4754

Merged
AayushSabharwal merged 1 commit into
SciML:masterfrom
jClugstor:deepcopy_trimmability
Jul 15, 2026
Merged

Add deepcopy_internal method for GeneratedFunctionWrappers#4754
AayushSabharwal merged 1 commit into
SciML:masterfrom
jClugstor:deepcopy_trimmability

Conversation

@jClugstor

Copy link
Copy Markdown
Member

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

The wrapped functions are stateless, so there's nothing to deepcopy, so just return the input. This should preserve trimmability while still giving users the option to alias / not alias their functions using the aliasing interface.

@AayushSabharwal
AayushSabharwal merged commit ab76aaf into SciML:master Jul 15, 2026
83 of 92 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants