Skip to content

Commit 0509acb

Browse files
committed
Change newindex to use CartesianIndex
1 parent 9aca710 commit 0509acb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/structuredbroadcast.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ isvalidstructbc(dest::Bidiagonal, bc::Broadcasted{StructuredMatrixStyle{Bidiagon
194194
@inbounds Broadcast._broadcast_getindex(bc, b)
195195
end
196196

197-
Broadcast.newindex(A, b::BandIndex) = Broadcast.newindex(A, _cartinds(b))
197+
Broadcast.newindex(A, b::BandIndex) = Broadcast.newindex(A, CartesianIndex(b))
198198
function Broadcast.newindex(A::StructuredMatrix, b::BandIndex)
199199
# we use the fact that a StructuredMatrix is square,
200200
# and we apply newindex to both the axes at once to obtain the result

0 commit comments

Comments
 (0)