-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Drop first arg for OOP update_coefficients #202
Comments
Yes it probably shouldn't be there. |
yeah i agree. Then we can simplify the API from |
Also, I'd like to remove https://github.com/SciML/SciMLOperators.jl/blob/master/src/interface.jl#L42-L54 It leads to unsafe behaviour that we have no way to protect against. Removing # OOP signature
L = update_coefficients(L, p, t; kw...)
L(u, p, t) |
It's very useful for defining operators used in Magnus methods though, i.e. |
For OOP update coefficients, perhaps the first argument (e.g matrix for MatrixOperator) should not be part of the signature since it isn't overwritten and its old values are not relevant.
The text was updated successfully, but these errors were encountered: