Skip to content

[Utilities] simplify various operate_ methods - #2212

Merged
odow merged 6 commits into
masterfrom
od/simplify-operate
Jun 21, 2023
Merged

odow merged 6 commits into
masterfrom
od/simplify-operate

Conversation

@odow

@odow odow commented Jun 20, 2023

Copy link
Copy Markdown
Member

#2208 moved a bunch of methods around and added tests, but I didn't change any behavior or merge the functionality of different methods.

This PR adds a generic operate_term method (which was really operate_coefficient), and then leverages that to simplify a number of other methods, in some cases (like univariate -) removing the specialized methods all together.

I've also "deprecated" (in documentation only) operate_terms! which was only used in three places in mutable arithmetics. We should aim for fewer simpler methods, instead of a potpourri of methods that we've added for special cases.

Comment thread src/Utilities/operate.jl Resolved
Comment thread src/Utilities/operate.jl Resolved
@odow
odow merged commit 9e3a1ee into master Jun 21, 2023
@odow
odow deleted the od/simplify-operate branch June 21, 2023 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant