You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
depwarn("using nonscalar indexed assignment to implicitly broadcast the values of an array to many indices is deprecated. Use `A[I...] .= values` to explicitly opt-in to broadcasting.", :setindex!)
1677
+
else
1678
+
depwarn("using nonscalar indexed assignment to implicitly broadcast the values of an array to many indices is deprecated. Use `A[I...] .= reshape(values` to explicitly opt-in to broadcasting.", :setindex!)
1679
+
@nexprs$N d->(I_d = I[d])
1680
+
idxlens =@ncall$N index_lengths I
1681
+
@ncall$N setindex_shape_check X (d->idxlens[d])
1682
+
Xs =start(X)
1683
+
@inbounds@nloops$N i d->I_d begin
1684
+
v, Xs =next(X, Xs)
1685
+
@ncall$N setindex! A v i
1686
+
end
1687
+
A
1688
+
end
1689
+
end
1690
+
@deprecatesetindex!(B::BitArray, X::StridedArray, I::Union{Colon,UnitRange{Int}}) B[I] .= X
1691
+
@deprecatesetindex!(B::BitArray, X::StridedArray, I0::Union{Colon,AbstractUnitRange}, I::Union{Int,Colon,AbstractUnitRange}...) B[I0, I...] .= X
0 commit comments