-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
There was a problem hiding this 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
?
src/algorithms/davidchack_lai.jl
Outdated
return false | ||
end | ||
|
||
function output(ds, fps, type, T) |
There was a problem hiding this comment.
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".
src/algorithms/davidchack_lai.jl
Outdated
return newst - state | ||
end | ||
|
||
function storage(type, n) |
There was a problem hiding this comment.
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.
Porting Davidchack & Lai algorithm from ChaosTools.jl.