Tests for the jit code.
More...
◆ check()
void check |
( |
const T |
test, |
|
|
const T |
tolarance |
|
) |
| |
Assert when difference is greater than the tolarance.
Specialize to check for complex numbers since complex has not <= operator.
- Template Parameters
-
T | Base type of the calculation. |
- Parameters
-
[in] | test | Test value. |
[in] | tolarance | Test tolarance. |
◆ compile()
Compile kernal and check the result of the output.
- Template Parameters
-
T | Base type of the calculation. |
- Parameters
-
[in] | inputs | Kernel input nodes. |
[in] | outputs | Kernel output nodes. |
[in] | setters | Kernel set nodes. |
[in] | expected | Expected result. |
[in] | tolarance | Check tolarances. |
◆ main()
int main |
( |
int |
argc, |
|
|
const char * |
argv[] |
|
) |
| |
Main program of the test.
- Parameters
-
[in] | argc | Number of commandline arguments. |
[in] | argv | Array of commandline arguments. |
◆ run_dispersion_test()
void run_dispersion_test |
( |
equilibrium::shared< typename DISPERSION_FUNCTION::base > & |
eq, |
|
|
const typename DISPERSION_FUNCTION::base |
tolarance |
|
) |
| |
Run dispersion tests.
- Template Parameters
-
DISPERSION_FUNCTION | Class of dispersion function to use. |
- Parameters
-
[in,out] | eq | Equilibrium for the dispersion function. |
[in] | tolarance | The test tolarance for check results to. |
◆ run_dispersion_tests()
template<typename T >
void run_dispersion_tests |
( |
| ) |
|
Run dispersion tests.
- Template Parameters
-
T | Base type of the calculation. |
◆ run_math_tests()
Run tests to test simple math operations are the same.
- Template Parameters
-
T | Base type of the calculation. |
◆ run_tests()
Run tests.
- Template Parameters
-
T | Base type of the calculation. |