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

Porting Davidchack & Lai algorithm #16

Merged
merged 8 commits into from
Sep 27, 2024
Merged

Porting Davidchack & Lai algorithm #16

merged 8 commits into from
Sep 27, 2024

Conversation

JonasKoziorek
Copy link
Contributor

Porting Davidchack & Lai algorithm from ChaosTools.jl.

Copy link
Member

@Datseris Datseris left a comment

Choose a reason for hiding this comment

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

What is the output of the algorithm? the output of periodic_orbits?

return false
end

function output(ds, fps, type, T)
Copy link
Member

Choose a reason for hiding this comment

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

This function has an incredibly generic name. It should be named specifically to what it does. Literally every function can be named "output" as it does return an "output".

return newst - state
end

function storage(type, n)
Copy link
Member

Choose a reason for hiding this comment

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

This function shouldn't exist. Just inline it where it is called. You can use the one-liner

storage = [vectype[] for _ in 1:n+1]

to make the storage.

@Datseris Datseris merged commit 46062c3 into main Sep 27, 2024
2 checks passed
@Datseris Datseris deleted the davidchack_lai branch September 27, 2024 19:31
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