Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

odeint without uBLAS? #254

Open
tueda opened this issue Nov 10, 2020 · 0 comments
Open

odeint without uBLAS? #254

tueda opened this issue Nov 10, 2020 · 0 comments

Comments

@tueda
Copy link

tueda commented Nov 10, 2020

Is it possible to use odeint without uBLAS?

Background: vcpkg's boost-odeint port does not include boost-ublas in its dependency. So, if one simply uses #include <boost/numeric/odeint.hpp> then encounters a compilation error due to the lack of boost/numeric/ublas/vector.hpp etc. But I am not sure whether uBLAS is really always mandatory for odeint. Though some implicit solvers indeed use uBLAS directly, (if I correctly understand) in many cases it does not seem necessary unless users specify ublas::vector or ublas::matrix as the state type. But algebra_dispatcher.hpp always tries including uBLAS and defines their algebra even if not used.

It would be nice if odeint has a configuration option (say, BOOST_NUMERIC_ODEINT_DISABLE_UBLAS) not to include uBLAS headers in algebra_dispatcher.hpp, which is good for vcpkg users for the aforementioned reason and maybe also for reducing compilation time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant