We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55ff45a commit 4702b57Copy full SHA for 4702b57
src/blocksparsearrayinterface/broadcast.jl
@@ -40,7 +40,8 @@ end
40
# If the RHS is zero, this makes sure that the storage is emptied,
41
# which is logic that is handled by `fill!`.
42
function copyto_blocksparse!(dest::AbstractArray, bc::Broadcasted{<:AbstractArrayStyle{0}})
43
- value = bc.f(bc.args...)
+ # `[]` is used to unwrap zero-dimensional arrays.
44
+ value = bc.f(bc.args...)[]
45
return @interface BlockSparseArrayInterface() fill!(dest, value)
46
end
47
0 commit comments