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
[Utilities] tidy Base overloads in functions.jl #2213
Conversation
Part of the complexity here because of MathOptInterface.jl/test/Utilities/functions.jl Lines 30 to 50 in 9e3a1ee
Do we really want to define |
I don't know of any use-case. We had so many issues with upstream expecting things to be number, e.g., in jump-dev/MutableArithmetics.jl#47 that I wanted to stay away from it when possible. However for MOI coefficients it's probably fine to assumes the coefficients are numbers |
Do we want |
Left as-is for now. There hasn't been a need to add more methods for |
@blegat there's some inconsistent behavior with how we deal with mixed coefficient types. What would you like to happen?
Here's the latest release version (NOT this PR):