Skip to content

Conversation

@gdalle
Copy link
Member

@gdalle gdalle commented Oct 7, 2024

In general, @inbounds should not be used unless the indices have been properly checked, and the functions I modify here don't use eachindex or check the validity of ranges. Thus, they are unsafe, and this can lead to very weird behavior as we have seen in SciML/NonlinearSolve.jl#473.

@ChrisRackauckas ChrisRackauckas merged commit bcf0198 into master Oct 7, 2024
4 of 5 checks passed
@ChrisRackauckas ChrisRackauckas deleted the gd/remove_inbounds branch October 7, 2024 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants