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

Small Radau Optimizations #2548

Merged
merged 3 commits into from
Dec 3, 2024
Merged

Conversation

Shreyas-Ekanathan
Copy link
Contributor

@oscardssmith let me know if I forgot any changes, I fixed the tableau caching thing we discussed and associated changes.

Comment on lines 522 to 526
if (min == 3 || min == 5 || min == 7)
i = 9
else
i = min
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i = max(min_stages, 9) (although this would require you to rename min and max to min_stages and max to max_stages which you should do anyway.

Comment on lines 536 to 544
if (min == 3)
index = 1
elseif (min == 5)
index = 2
elseif (min == 7)
index = 3
else
index = 4
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

index = min(div(min_stages, 2), 4) (although see other naming suggestion)

@ChrisRackauckas ChrisRackauckas merged commit 5c00abb into SciML:master Dec 3, 2024
131 of 141 checks passed
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