Skip to content

Commit eab2fec

Browse files
authored
Fix for certain scalar broadcasting expressions (#19)
1 parent 555adcb commit eab2fec

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "NamedDimsArrays"
22
uuid = "60cbd0c0-df58-4cb7-918c-6f5607b73fde"
33
authors = ["ITensor developers <[email protected]> and contributors"]
4-
version = "0.3.6"
4+
version = "0.3.7"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

src/abstractnameddimsarray.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,9 @@ end
769769
function Broadcast.broadcast_shape(ax1::Tuple{}, ax2::NaiveOrderedSet)
770770
return ax2
771771
end
772+
function Broadcast.broadcast_shape(ax1::NaiveOrderedSet, ax2::Tuple{})
773+
return ax1
774+
end
772775

773776
function Base.promote_shape(ax1::NaiveOrderedSet, ax2::NaiveOrderedSet)
774777
return NaiveOrderedSet(set_promote_shape(Tuple(ax1), Tuple(ax2)))

0 commit comments

Comments
 (0)