We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31c97f4 commit 8d8a633Copy full SHA for 8d8a633
2 files changed
Project.toml
@@ -1,7 +1,7 @@
1
name = "BlockSparseArrays"
2
uuid = "2c9a651f-6452-4ace-a6ac-809f4280fbb4"
3
authors = ["ITensor developers <support@itensor.org> and contributors"]
4
-version = "0.9.4"
+version = "0.9.5"
5
6
[deps]
7
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
src/blocksparsearrayinterface/broadcast.jl
@@ -63,7 +63,8 @@ end
63
# which is logic that is handled by `fill!`.
64
function copyto_blocksparse!(dest::AbstractArray, bc::Broadcasted{<:AbstractArrayStyle{0}})
65
# `[]` is used to unwrap zero-dimensional arrays.
66
- value = @allowscalar bc.f(bc.args...)[]
+ bcf = Broadcast.flatten(bc)
67
+ value = @allowscalar bcf.f(map(arg -> arg[], bcf.args)...)
68
return @interface BlockSparseArrayInterface() fill!(dest, value)
69
end
70
0 commit comments