Skip to content

Commit f198e76

Browse files
committed
fix nstored
1 parent 2f086ec commit f198e76

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

NDTensors/src/lib/BlockSparseArrays/ext/BlockSparseArraysGradedAxesExt/test/runtests.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ const elts = (Float32, Float64, Complex{Float32}, Complex{Float64})
6060
@test blocksize(b) == (2, 2, 2, 2)
6161
@test blocklengths.(axes(b)) == ([2, 2], [2, 2], [2, 2], [2, 2])
6262
@test nstored(b) == 256
63-
# TODO: Fix this for `BlockedArray`.
64-
@test_broken block_nstored(b) == 16
63+
@test block_nstored(b) == 16
6564
for i in 1:ndims(a)
6665
@test axes(b, i) isa BlockedOneTo{Int}
6766
end

NDTensors/src/lib/BlockSparseArrays/src/blocksparsearrayinterface/blocksparsearrayinterface.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,5 +305,4 @@ function blocksparse_blocks(
305305
end
306306

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

0 commit comments

Comments
 (0)