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 e7a2369 commit 76f5ee3Copy full SHA for 76f5ee3
src/blockedtuple.jl
@@ -39,6 +39,8 @@ end
39
function Base.getindex(bt::AbstractBlockTuple, bi::BlockIndexRange{1})
40
return bt[Block(bi)][only(bi.indices)]
41
end
42
+# needed for nested broadcast in Julia < 1.11
43
+Base.getindex(bt::AbstractBlockTuple, ci::CartesianIndex{1}) = bt[only(Tuple(ci))]
44
45
Base.iterate(bt::AbstractBlockTuple) = iterate(Tuple(bt))
46
Base.iterate(bt::AbstractBlockTuple, i::Int) = iterate(Tuple(bt), i)
0 commit comments