Open imciner2 opened 4 years ago
In theory this could infer with constant propagation. In practice this will be hard. The ODE default algorithm is inherently dependent on the values of keyword arguments, so without total constant specialization this won't occur.
Using an automatic solver to solve this sample problem does not allow for the compiler to infer the type of
sol1
orsol2
at all.Result of
@code_warntype
Changing it to use a solver such as
Tsit5()
makes the type inferrable, but using a solver such asRosenbrock23()
doesn't allow inference of the type of the solution either.