Skip to content

Commit

Permalink
fix nstored
Browse files Browse the repository at this point in the history
  • Loading branch information
ogauthe committed Nov 5, 2024
1 parent 2f086ec commit f198e76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ const elts = (Float32, Float64, Complex{Float32}, Complex{Float64})
@test blocksize(b) == (2, 2, 2, 2)
@test blocklengths.(axes(b)) == ([2, 2], [2, 2], [2, 2], [2, 2])
@test nstored(b) == 256
# TODO: Fix this for `BlockedArray`.
@test_broken block_nstored(b) == 16
@test block_nstored(b) == 16
for i in 1:ndims(a)
@test axes(b, i) isa BlockedOneTo{Int}
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,5 +305,4 @@ function blocksparse_blocks(
end

using BlockArrays: BlocksView
# TODO: Is this correct in general?
SparseArrayInterface.nstored(a::BlocksView) = 1
SparseArrayInterface.nstored(a::BlocksView) = length(a)

0 comments on commit f198e76

Please sign in to comment.