-
Notifications
You must be signed in to change notification settings - Fork 4
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
New subtype for state space set that contains normal Vectors #18
Comments
It should be a direct duplicate of |
Hi! I'd like to contribute here, as this would also help me a great deal to implement the simulation of spatiotemporal systems. Before I do anything, I have a question though: Currently, many methods for
I feel like 1. would be more conform with Also: Currently |
The very first thing is to define a new function Then, as you suggested, a new type
A decision based on the dimensionality would not be type stable. Instead, we can add one more keyword to trajectory that decides whether the output should be returned as |
This issue ties in with another issue I've had: it should be possible to use One possibility to control the return type is to parameterize |
Using keywords to change the container type in |
All constructors of |
Haha, you beat me to the finishing line by seconds, @Datseris!
I also think this is the way to go, but:
What would the return type be when doing e.g. |
Agreed. Could we potentially also use the same optional argument to control the return type in the case of potential ambiguities, e.g. |
We use the same promotion rules as in base Julia if they exist, other wise error. There is a promotion rule for when doing |
V = promote_type(containertype(A), containertype(B)) is the function. |
Excellent. I guess StaticArrays.jl has also defined relevant promotion rules for the case of |
There actually not that many instances of I'm working on a PR atm, so will present a proposal shortly. |
What do you mean? There should only be one instance of promote rule defined, maybe two, one for vector + any_vector_from_staticarrays and one for svector + mvector |
@kahaaga or @ikottlarz did either of you have had any progress here? |
Yes, but it's not finished. I'm focusing on getting the ComplexityMeasures.jl stuff ready before I finish my work on this issue. |
if you have some code maybe open a PR and someone else can finish it? (likely, me) |
I am doing this now |
For performance reasons, and because often one works in low dimensional cases,
StateSpaceSet
always has the points asSVector
. This becomes limiting in high dimensional systems with 100s or more dimensions.We should allow for another type that contains the points in normal Julia vectors, but is still type parameterized for its dimension.
See also JuliaDynamics/Attractors.jl#76 and we have the same problem in ComplexityMeasures.jl when trying to compute histograms in 100-dimensional spaces (cc @kahaaga ).
The text was updated successfully, but these errors were encountered: