Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove @inbounds for structured matrices #193

Merged
merged 1 commit into from
Oct 7, 2024

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.

2 participants