Skip to content

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.

2 participants