Skip to content

Commit 0082d25

Browse files
committed
Adustments to slicing
1 parent 7f33ba4 commit 0082d25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/abstractblocksparsearray/arraylayouts.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function ArrayLayouts.sub_materialize(layout::BlockLayout{<:SparseLayout}, a, ax
6464
a_dest = BlockSparseArray{eltype(a), length(axes), blocktype_a}(undef, axes)
6565
for I in SparseArraysBase.eachstoredindex(blocks(a))
6666
b = Block(Tuple(I))
67-
a_dest[b] = blocks(a)[Tuple(I)...]
67+
a_dest[b] = copy(blocks(a)[Tuple(I)...])
6868
end
6969
return a_dest
7070
end

0 commit comments

Comments
 (0)