BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
Algorithms.h File Reference

Description

Defines and implements namespace BaseUtils::algo with some algorithms.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file Algorithms.h.

Include dependency graph for Algorithms.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 BaseUtils
 
 BaseUtils::algo
 Some additions to standard library algorithms.
 

Macros

#define BORNAGAIN_BASE_UTIL_ALGORITHMS_H
 

Functions

bool BaseUtils::algo::almostEqual (double a, double b)
 Returns true if two doubles agree within machine epsilon. More...
 
template<class T >
std::vector< T > BaseUtils::algo::concat (const std::vector< T > &v1, const std::vector< T > &v2)
 Returns the concatenation of two std::vectors. More...
 
template<typename Evaluator , typename Iterator >
double BaseUtils::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. More...
 
template<typename Evaluator , typename Iterator >
double BaseUtils::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. More...
 

Macro Definition Documentation

◆ BORNAGAIN_BASE_UTIL_ALGORITHMS_H

#define BORNAGAIN_BASE_UTIL_ALGORITHMS_H

Definition at line 21 of file Algorithms.h.