File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/blocksparsearrayinterface Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11name = " BlockSparseArrays"
22uuid = " 2c9a651f-6452-4ace-a6ac-809f4280fbb4"
33authors = [
" ITensor developers <[email protected] > and contributors" ]
4- version = " 0.9.4 "
4+ version = " 0.9.5 "
55
66[deps ]
77Adapt = " 79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Original file line number Diff line number Diff line change 6363# which is logic that is handled by `fill!`.
6464function copyto_blocksparse! (dest:: AbstractArray , bc:: Broadcasted{<:AbstractArrayStyle{0}} )
6565 # `[]` is used to unwrap zero-dimensional arrays.
66- value = @allowscalar bc. f (bc. args... )[]
66+ bcf = Broadcast. flatten (bc)
67+ value = @allowscalar bcf. f (map (arg -> arg[], bcf. args)... )
6768 return @interface BlockSparseArrayInterface () fill! (dest, value)
6869end
6970
You can’t perform that action at this time.
0 commit comments