Skip to content

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.

3 participants