<cmaths>
has all the standard stuff<complex>
has the equivalents for complex numbers- Errors are written to
errno
<numeric>
for more common algorithmsaccumulate
,inner_product
,partial_sum
,adjacent_difference
- There are also more general functions that allow replacing the default operation (e.g.
+
foraccumulate
) with a custom function iota
for numeric ranges
complex
is a template to make it possible to set the type of the real and imaginary components
- Random number generators consist of two components:
- An engine that produces a sequence of random values
- A distribution that maps those values respectively
- E.g.
uniform_int_distribution
accepts an engine as an argument, such asdefault_random_engine
auto dice = bind(uniform_int_distribution{1, 6}(default_random_engine{})
- Binding an engine to a distribution yields a random number generator
valarray
helps with multidimensional arrays- It has support for stride access