You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, if value_type's constructor is marked explicit, this will fail. I ran into this trying to use a ceres a jet type for the scalars here for the purpose of automatic differentiation.
It seems like it would be more robust to use something like
const value_type one{1.0};
in these scenarios instead of the raw 1.0. And if I make that change, the ceres jet type works correctly.
I would be willing to work on a PR if this is a change the maintainers would accept.
The text was updated successfully, but these errors were encountered:
There are many places in odeint similar to the following (taken from
runge_kutta_dopri5.hpp
):Unfortunately, if
value_type
's constructor is markedexplicit
, this will fail. I ran into this trying to use a ceres a jet type for the scalars here for the purpose of automatic differentiation.It seems like it would be more robust to use something like
in these scenarios instead of the raw
1.0
. And if I make that change, the ceres jet type works correctly.I would be willing to work on a PR if this is a change the maintainers would accept.
The text was updated successfully, but these errors were encountered: