-
Notifications
You must be signed in to change notification settings - Fork 125
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
[NDTensors] Fix issue in Tensor
constructor when storage involves wrapper types
#1441
Conversation
Tensor
constructor when storage involves wrapper types
Can you split off the fixes to |
Looks good, thanks. I'm going to double check that this fixes the issue I originally saw in JanReimers/ITensorMPOCompression.jl#7 once I change that over to constructing the ITensor from the storage, but otherwise this looks good to go. I see a failure in the Metal tests but maybe that is just a random failure unrelated to this PR? |
Ok, I checked that this fixes the issue I was seeing in JanReimers/ITensorMPOCompression.jl#7 so I'll merge once tests pass. |
This is the proposed solution from issue 1438 and should make it possible now to create a copy
Tensor/ITensor
from a view of anotherTensor/ITensor
. I also fixed an additional constructor in UnallocatedArrays that should sayUnallocatedX
instead ofnew
I am adding a test for that in the unittests nowFixes #1438.