I am pretty sure that Eigen will also work with odeint. So it is up to you if you want to change to MTL.
The documentation of odeint http://headmyshoulder.github.com/odeint-v2/doc/boost_numeric_odeint/odeint_in_detail/state_types__algebras_and_operations.html shows how to adapt an arbitrary type to odeint. I think Eigen supports expression templates (so you can write vector or matrix expression like M1=a*M2+b*M3;
) such that you can use odeint with the vector_space_algebra
and the default_operations
. All you have to do is to adapt the resizing mechanism of odeint. Have a look at the MTL bindings in odeint to see how this works. It is straightforward.