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
When doing the following type of iteration over SparseArrays, I was expecting that no bound checks would be added.
However nzrange does add some because it doesn't have Base.@propagate_inbounds
The exact semantics of @inbounds here is somewhat unclear: my intuitive feeling is that the @inbounds of the inner loop doesn't include the nzrange(X,j) and only the loop body. This is not how @inbounds is implemented however.
When doing the following type of iteration over SparseArrays, I was expecting that no bound checks would be added.
However
nzrange
does add some because it doesn't haveBase.@propagate_inbounds
The exact semantics of
@inbounds
here is somewhat unclear: my intuitive feeling is that the@inbounds
of the inner loop doesn't include thenzrange(X,j)
and only the loop body. This is not how@inbounds
is implemented however.originally posted at JuliaLang/julia#42553 by @tomhaber. I make no claim whether this issue is valid.
The text was updated successfully, but these errors were encountered: