Skip to content

odeint without uBLAS? #254

Open
Open

Description

@tueda

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions