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] Zero dimensional block sparse array and some fixes for Adjoint and PermutedDimsArray #1574

Merged
merged 8 commits into from
Nov 9, 2024

Conversation

mtfishman
Copy link
Member

@mtfishman mtfishman commented Nov 8, 2024

Fixes an issue brought up in #1336 (comment) that BlockSparseArray{Float64}() failed. I also fixed getting and setting elements of zero dimensional block sparse arrays. Probably there is more functionality to fix but at least this is a good start.

This also fixes an issue preserving axes duality when copying a' (#1336 (comment)) and a printing issue with a' where the axes weren't being reversed properly.

In the latest, I've also fixed a bug in PermutedDimsArray(a, perm) that was raised here: #1336 (comment).

Some code in this PR can be simplified once JuliaArrays/BlockArrays.jl#431 is merged.

To-do:

  • Test zero dimensional BlockSparseArray.
  • Test copying PermutedDimsArray(a, perm).
  • Test preserving axis duality in copy(a').

@mtfishman mtfishman changed the title [BlockSparseArrays] Zero dimensional block sparse array [BlockSparseArrays] Zero dimensional block sparse array and some fixes for Adjoint Nov 8, 2024
@mtfishman mtfishman changed the title [BlockSparseArrays] Zero dimensional block sparse array and some fixes for Adjoint [BlockSparseArrays] Zero dimensional block sparse array and some fixes for Adjoint and PermutedDimsArray Nov 8, 2024
@mtfishman mtfishman merged commit 49c1202 into main Nov 9, 2024
13 checks passed
@mtfishman mtfishman deleted the BlockSparseArrays_zero_dims branch November 9, 2024 17:50
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