Skip to content

Commit 47a5eb5

Browse files
committed
Fix tests
1 parent 96d3ac2 commit 47a5eb5

File tree

1 file changed

+1
-1
lines changed
  • src/blocksparsearrayinterface

1 file changed

+1
-1
lines changed

src/blocksparsearrayinterface/map.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ end
102102
# `map(f, a; preserves_zeros=true)` or `@preserves_zeros map(f, a)`.
103103
function map_stored_blocks(f, a::AbstractArray)
104104
blocks_a = blocks(a)
105-
stored_indices = collect(eachstoredindex(a))
105+
stored_indices = collect(eachstoredindex(blocks_a))
106106
stored_blocks = map(I -> f(blocks_a[I]), stored_indices)
107107
blocks_a′ = SparseArrayDOK{eltype(stored_blocks)}(undef_blocks, axes(a))
108108
for (I, b) in zip(stored_indices, stored_blocks)

0 commit comments

Comments
 (0)