QMCPACK
TestFillVecRngComplex< T > Struct Template Reference
+ Inheritance diagram for TestFillVecRngComplex< T >:
+ Collaboration diagram for TestFillVecRngComplex< 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::TestFillVecRngComplex< T >

Definition at line 127 of file test_RandomForTest.cpp.

Member Typedef Documentation

◆ ref

using ref = RngReferenceVector<T>

Definition at line 129 of file test_RandomForTest.cpp.

◆ VT

using VT = typename T::value_type

Definition at line 130 of file test_RandomForTest.cpp.

Member Function Documentation

◆ operator()()

void operator() ( )
inline

Definition at line 131 of file test_RandomForTest.cpp.

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

132  {
133  testing::RandomForTest<VT> rng_for_test;
134  std::vector<T> rng_vector(2);
135  rng_for_test.fillVecRng(rng_vector);
136  auto checkArray = [](auto A, auto B, int n) {
137  for (int i = 0; i < n; ++i)
138  {
139  CHECK(A[i] == ComplexApprox(B[i]));
140  }
141  };
142  checkArray(rng_vector.data(), ref::vec.data(), 2);
143  }
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: