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
LinearAlgebra: replace internal broadcast indexing method by getindex (#54071)
Within the `@inbounds` annotation, these two should be equivalent, so we
may call the public method instead of the internal one. Performance
remains unchanged by this.
v =@inboundsBroadcast._broadcast_getindex(bc, CartesianIndex(i, i+1))
214
-
v == (@inboundsBroadcast._broadcast_getindex(bc, CartesianIndex(i+1, i))) ||throw(ArgumentError(lazy"broadcasted assignment breaks symmetry between locations ($i, $(i+1)) and ($(i+1), $i)"))
213
+
v =@inboundsbc[CartesianIndex(i, i+1)]
214
+
v == (@inboundsbc[CartesianIndex(i+1, i)]) ||throw(ArgumentError(lazy"broadcasted assignment breaks symmetry between locations ($i, $(i+1)) and ($(i+1), $i)"))
215
215
dest.ev[i] = v
216
216
end
217
217
return dest
@@ -222,11 +222,11 @@ function copyto!(dest::Tridiagonal, bc::Broadcasted{<:StructuredMatrixStyle})
0 commit comments