-
Notifications
You must be signed in to change notification settings - Fork 42
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
Composition bug when chaining 4 LinearMaps #24
Comments
Hi @cako , that was a tough one. Generally, this functionality is tested, so it came as a big surprise to me. The issue seems to be here with your function definition. As a MWE, take
which yields
on my machine. So, applying your function to a
For that reason, I would not like to give up the semi-inplace |
Hi @dkarrasch, awesome, thanks for looking into this. Using your solution 2 for me is absolutely fine, so I'll stick to that! |
Having a collaborator is already paying off on day one ! 🥇 |
Thanks. On my end, I wasn't sure if that was a wise decision, on day one. :-))))))))) But my Ph.D. student helped me, so just in case, I'll pass the issues over to him and keep all merits and medals. ;-) |
I ran into a bug when composing 4 maps using LinearMaps 1.0.4. When running the following script in Julia 0.6.3, I get
ERROR: cannot resize array with shared data
.The culprit is a
resize!
incomposition.jl
(line 93). I propose to simply create a new array at each composition multiplication (in a commit soon to follow). It is true this is not the most efficient solution, however, people using LinearMaps will tend to have very expensive operators such that the cost of allocation is negligible compared to the cost of multiplication.The text was updated successfully, but these errors were encountered: