Open AlexEnrique opened 4 years ago
opCall()
method of the Map(alias f)
class.That method was used to have access to the aliased lambda. One way to get access to the lambda is to define a function template to capture the same alias as
auto foo(alias f, ...)(Map!f map, ...) {
\\ use 'f' here.
}
isSink()
and isSource()
functions).map!(x => dynamicFunc(x))
Is there an way to deal with run-time template values?
- Possibly Voldemort Types returned by templates?
Yes! Look at this working example:
auto createLogisticMap(double a, real x = real.init) {
class _LogisticMap : Map!(x => a * x * (1 - x)) {
this() {}
this(real x) {
super(x);
}
}
if (x != real.init) return new _LogisticMap(x);
return new _LogisticMap;
}
auto rnd = Mt19937_64(unpredictableSeed!ulong);
auto map = createLogisticMap(a, rnd.uniform01);
if (x != real.init) return new _LogisticMap(x); return new _LogisticMap;
.setInitialValue()
method of the Map!(alias f)
class._orbit
member variable to Appender!type
TODO list
[ ] Implement an algorithm to generate a bifucartion diagram.
[x] Implement a function to study the stability of fixed points.
[ ] Implement functions for periodic orbits.
[ ] Think about how to get the Lyapunov number/exponent.
[ ] Design a way to deal with itineraries
[ ] Start to write the documentation