boost::sandbox::odeint install
I would like to use the odeint module from the boost::sandbox but I am not sure how to integrate the sandbox code which I retrieved from svn into my boost install. I have boost installed to $BOOST_ROOT=/usr/local/boost_1_45_0. Is it proper to just merge contents of odeint into my boost path which would place the header at $BOOST_ROOT/boost/numeric/odeint.hpp.
开发者_JAVA百科Is this the right approach or is there a standard way of getting and installing boost::sandbox code?
boost.odeint is completely header-only. So, you can copy the content of the odeint/boost directory into your $BOOST_ROOT dir, and everything should work. Alternatively, you could add the location of the odient directory to the include flags of your compiler (for example for gcc -Ipath_to_odeint).
I am not aware of any "proper" solution, but I can tell you that you should not meet any problems if you just copy boost/numeric/odeint.hpp
and boost/numeric/odeint/*.hpp
to that directory since no file will be overwritten (if something fails just remove them and you're done).
For what its worth I did that for boost::process and it worked without any problems.
At the moment we completely redesign the library. The interface will be the same but it will have some additional features (cuda support, support for structs and tuples as state types) and some more steppers (stiff solvers, implicit solvers, etc.). A bug tracker and a separate list does not exist, but you could use boost-users@lists.boost.org for discussion or suggestions.
精彩评论