1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#ifndef BORNAGAIN_TESTS_UNIT_NUMERIC_MULTIQTEST_H
#define BORNAGAIN_TESTS_UNIT_NUMERIC_MULTIQTEST_H
#include "Tests/GTestWrapper/google_test.h"
#include <functional>
#include <heinz/Complex.h>
#include <heinz/Vectors3D.h>
//! Driver for FormfactorSpecializationTest and FormfactorSymmetryTest.
namespace formfactorTest {
//! Runs tests of fff0(q) vs fff1(q) for a huge number of different vectors q.
//! The callback functions fff0/1 may compute ff0(q) vs ff1(q), or ff(q) vs ff(q').
int run_test_for_many_q(std::function<complex_t(C3)> fff0, std::function<complex_t(C3)> fff1,
double qmag_min, double qmag_max, double eps, bool real_only = false);
} // namespace formfactorTest
#endif // BORNAGAIN_TESTS_UNIT_NUMERIC_MULTIQTEST_H
|