| Home | Libraries | People | FAQ | More

#### Headers and Namespaces

All the code in this library is inside `namespace boost::math`.

In order to use a distribution my_distribution you will need to include either the header(s) `<boost/math/my_distribution.hpp>` (quicker compiles), or the "include all the distributions" header: `<boost/math/distributions.hpp>`.

For example, to use the Students-t distribution include either `<boost/math/students_t.hpp>` or `<boost/math/distributions.hpp>`

You also need to bring distribution names into scope, perhaps with a `using namespace boost::math;` declaration,

or specific `using` declarations like `using boost::math::normal;` (recommended).

| Caution
Some math function names are also used in `namespace std` so including `<random>` could cause ambiguity!