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

Public Types

using ref = RngReferenceVector< T >
 

Public Member Functions

void operator() ()
 

Detailed Description

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

Definition at line 48 of file test_RandomForTest.cpp.

Member Typedef Documentation

◆ ref

using ref = RngReferenceVector<T>

Definition at line 50 of file test_RandomForTest.cpp.

Member Function Documentation

◆ operator()()

void operator() ( )
inline

Definition at line 51 of file test_RandomForTest.cpp.

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

52  {
53  testing::RandomForTest<T> rng_for_test;
54  std::vector<T> rng_vector(5, 0.0);
55  rng_for_test.fillBufferRng(rng_vector.data(), 5);
56  auto checkArray = [](auto A, auto B, int n) {
57  for (int i = 0; i < n; ++i)
58  {
59  CHECK(A[i] == Approx(B[i]));
60  }
61  };
62  checkArray(rng_vector.data(), ref::vec.data(), 5);
63  }
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: