BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Defines and implements namespace algo with some algorithms. More...
Go to the source code of this file.
Namespaces | |
algo | |
Some additions to standard library algorithms. | |
Functions | |
bool | algo::almostEqual (double a, double b) |
Returns true if two doubles agree within machine epsilon. | |
template<typename Evaluator , typename Iterator > | |
double | algo::min_value (const Iterator &begin, const Iterator &end, const Evaluator &evaluate) |
Returns the minimum value of function evaluate as applied to the elements of an iterator range. | |
template<typename Evaluator , typename Iterator > | |
double | algo::max_value (const Iterator &begin, const Iterator &end, const Evaluator &evaluate) |
Returns the maximum value of function evaluate as applied to the elements of an iterator range. | |
template<class T > | |
std::vector< T > | algo::concat (const std::vector< T > &v1, const std::vector< T > &v2) |
Returns the concatenation of two std::vectors. | |
Defines and implements namespace algo with some algorithms.
Definition in file Algorithms.h.