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

[BlockSparseArrays] Fix eachindex(::BlockSparseArray) with dual axes #1479

Merged
merged 6 commits into from
May 31, 2024

Conversation

mtfishman
Copy link
Member

This is a temporary hack to fix eachindex(a::BlockSparseArray) when a has a mixture of dual and non-dual axes.

This will be fixed in a better way once GradedAxes is rewritten using BlockArrays v1 but for now I'm implementing some temporary fixes for issues like this and other ones being tracked in ITensor/BlockSparseArrays.jl#2.

@ogauthe

@mtfishman mtfishman changed the title [GradedAxes] Temporary hack to fix eachindex(::BlockSparseArray) with dual axes [GradedAxes] Temporary fix for eachindex(::BlockSparseArray) with dual axes May 30, 2024
@mtfishman
Copy link
Member Author

mtfishman commented May 31, 2024

I think this isn't a good fix since it is too hacky, I'll try overloading eachindex(::BlockSparseArray) directly instead. EDIT: Implemented in the latest commit, I think that is a better fix.

@mtfishman mtfishman changed the title [GradedAxes] Temporary fix for eachindex(::BlockSparseArray) with dual axes [BlockSparseArrays] Fix eachindex(::BlockSparseArray) with dual axes May 31, 2024
@mtfishman
Copy link
Member Author

@ogauthe in the latest commit I added a temporary fix for printing BlockSparseArray with mixed dual and non-dual axes.

@mtfishman mtfishman merged commit dbb7e7c into main May 31, 2024
16 checks passed
@mtfishman mtfishman deleted the GradedAxes_fix_eachindex branch May 31, 2024 15:02
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