File: MultiQTest.h

package info (click to toggle)
bornagain 23.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 103,936 kB
  • sloc: cpp: 423,131; python: 40,997; javascript: 11,167; awk: 630; sh: 318; ruby: 173; xml: 130; makefile: 51; ansic: 24
file content (20 lines) | stat: -rw-r--r-- 761 bytes parent folder | download | duplicates (2)
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