Gromacs  2025-dev-20240913-b871546
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Typedefs | Functions | Variables
gmx::test::anonymous_namespace{fft.cpp} Namespace Reference

Typedefs

using FFTTest3DParameters = std::tuple< int, int, int >
 

Functions

void checkRealGrid (const ivec realGridSize, const ivec realGridSizePadded, ArrayRef< const real > inputRealGrid, ArrayRef< real > outputRealGridValues)
 Check that the real grid after forward and backward 3D transforms matches the input real grid.
 

Variables

const double inputdata [500]
 Input data for FFT tests. More...
 
const
test::NameOfTestFromTuple
< FFTTest3DParameters > 
sc_testNamer
 Tuple of formatters to name the parameterized test cases. More...
 

Variable Documentation

const double gmx::test::anonymous_namespace{fft.cpp}::inputdata[500]

Input data for FFT tests.

TODO If we require compilers that all support C++11 user literals, then this array could be of type real, initialized with e.g. -3.5_r that does not suffer from implicit narrowing with brace initializers, and we would not have to do so much useless copying during the unit tests below.

const test::NameOfTestFromTuple<FFTTest3DParameters> gmx::test::anonymous_namespace{fft.cpp}::sc_testNamer
Initial value:
{
std::make_tuple(intToString, intToString, intToString)
}
static std::string intToString(int t)
Returns a string containing the value of t.
Definition: strconvert.h:174

Tuple of formatters to name the parameterized test cases.