QMCPACK
TestFillBufferRngComplex< T > Struct Template Reference
+ Inheritance diagram for TestFillBufferRngComplex< T >:
+ Collaboration diagram for TestFillBufferRngComplex< T >:

Public Types

using ref = RngReferenceVector< T >
 
using VT = typename T::value_type
 

Public Member Functions

void operator() ()
 

Detailed Description

template<typename T>
struct qmcplusplus::TestFillBufferRngComplex< T >

Definition at line 106 of file test_RandomForTest.cpp.

Member Typedef Documentation

◆ ref

using ref = RngReferenceVector<T>

Definition at line 108 of file test_RandomForTest.cpp.

◆ VT

using VT = typename T::value_type

Definition at line 109 of file test_RandomForTest.cpp.

Member Function Documentation

◆ operator()()

void operator() ( )
inline

Definition at line 110 of file test_RandomForTest.cpp.

References qmcplusplus::Units::distance::A, B(), qmcplusplus::CHECK(), qmcplusplus::checkArray, RandomForTest< VT >::fillBufferRng(), and qmcplusplus::n.

111  {
112  testing::RandomForTest<VT> rng_for_test;
113  std::vector<T> rng_vector(2);
114  rng_for_test.fillBufferRng(rng_vector.data(), 2);
115  auto checkArray = [](auto A, auto B, int n) {
116  for (int i = 0; i < n; ++i)
117  {
118  CHECK(A[i] == ComplexApprox(B[i]));
119  }
120  };
121  checkArray(rng_vector.data(), ref::vec.data(), 2);
122  }
CHECK(log_values[0]==ComplexApprox(std::complex< double >{ 5.603777579195571, -6.1586603331188225 }))
double B(double x, int k, int i, const std::vector< double > &t)

The documentation for this struct was generated from the following file: