Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect usage of Utilities.operate! #2207

Merged
merged 1 commit into from
Jun 13, 2023
Merged

Conversation

odow
Copy link
Member

@odow odow commented Jun 13, 2023

operate! may modify its argument, but it may also return a new object. These usages were buggy and incorrect. (Although, correct for now, but will break with {Vector,Scalar}NonlinearFunction

@odow odow added the Type: Bug label Jun 13, 2023
@odow
Copy link
Member Author

odow commented Jun 13, 2023

@blegat so much of the bridging/utilities system is premised on the structure of our Affine/Quadratic functions. There is supposed flexibility there, but we weren't actually testing it because none of the types needed it.

@blegat
Copy link
Member

blegat commented Jun 13, 2023

Indeed, to be consistent with MutableArithmetics and BangBang, we should have called it operate!!

@odow odow merged commit c3708aa into master Jun 13, 2023
@odow odow deleted the od/fix-operate-usage branch June 13, 2023 07:46
@odow
Copy link
Member Author

odow commented Jun 13, 2023

Indeed, to be consistent with MutableArithmetics and BangBang, we should have called it operate!!

Added to #2180

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants