Skip to content
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

[NestedPermutedDimsArrays] Fix setindex! #1593

Merged
merged 1 commit into from
Nov 16, 2024

Conversation

mtfishman
Copy link
Member

The previous version of setindex! wasn't inverting the permutation, this fixes that issue. I also changed the tests to catch that issue, the previous version didn't catch it since the permutation was its own inverse.

Additionally, I added some comments about how the NestedPermutedDimsArrays module could be rewritten using a PermutedDimsArray wrapping a MappedArrays.MappedArray, as mentioned in ITensor/BlockSparseArrays.jl#2. I tried it out and it mostly works but there would be a few issues to work through with that approach, probably best to keep it on the back burner for now and reassess later.

@mtfishman mtfishman merged commit 34a826b into main Nov 16, 2024
13 checks passed
@mtfishman mtfishman deleted the NestedPermutedDimsArrays_fix_setindex branch November 16, 2024 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant