-
Notifications
You must be signed in to change notification settings - Fork 37
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
Weird behavior of exponentiate when trying to use inplace behavior #89
Comments
Yes, KrylovKit currently assumes that applying the operator creates a result that is memorywise independent from the input. If at some point inplace operators would be supported, it would be with two-argument versions |
There is probably a way around it. I had originally written an inplace function to use with |
Can I close this? Supporting in place functions and reducing memory allocation is certainly on the TODO list so I don't think this needs to stay open as an extra reminder. |
Yes, go ahead! |
I am trying to use
exponentiate
to compute a matrix exponential of an inplace defined function. The simplest way to reproduce the problem which I found iswhich returns
[3.95..., 3.95...]
instead of[2.71..., 2.71...]
. In contrastworks fine. Is there a reason why method 1 should not work?
The text was updated successfully, but these errors were encountered: