41 CHECK(R[1][0] == Approx(1.68658058));
42 CHECK(R[1][1] == Approx(1.68658058));
43 CHECK(R[1][2] == Approx(1.68658058));
46 CHECK(RSoA[1][0] == Approx(1.68658058));
47 CHECK(RSoA[1][1] == Approx(1.68658058));
48 CHECK(RSoA[1][2] == Approx(1.68658058));
51 vec_soa_t RSoA_view(RSoA.data(), RSoA.size(), RSoA.capacity());
52 CHECK(RSoA_view[1][0] == Approx(1.68658058));
53 CHECK(RSoA_view[1][1] == Approx(1.68658058));
54 CHECK(RSoA_view[1][2] == Approx(1.68658058));
57 TEST_CASE(
"VectorSoaContainer copy constructor",
"[OhmmsSoA]")
74 CHECK(rsoa_copy[1][0] == Approx(1.68658058));
75 CHECK(rsoa_copy[1][1] == Approx(1.68658058));
76 CHECK(rsoa_copy[1][2] == Approx(1.68658058));
79 TEST_CASE(
"VectorSoaContainer move constructor",
"[OhmmsSoA]")
96 CHECK(rsoa_move[1][0] == Approx(1.68658058));
97 CHECK(rsoa_move[1][1] == Approx(1.68658058));
98 CHECK(rsoa_move[1][2] == Approx(1.68658058));
101 TEST_CASE(
"VectorSoaContainer assignment",
"[OhmmsSoA]")
114 CHECK(rsoa_assign[3][0] == Approx(5.05974172));
115 CHECK(rsoa_assign[3][1] == Approx(5.05974172));
116 CHECK(rsoa_assign[3][2] == Approx(1.68658058));
129 rsoa_assign = r_soa_big;
130 CHECK(rsoa_assign[4][0] == Approx(3.37316115));
131 CHECK(rsoa_assign[4][2] == Approx(0.00000000));
helper functions for EinsplineSetBuilder
TEST_CASE("complex_helper", "[type_traits]")
Soa Container for D-dim vectors.
SoA adaptor class for Vector<TinyVector<T,D> >
void copyIn(const Vector< TinyVector< T, D >> &in)
AoS to SoA : copy from Vector<TinyVector<>>
CHECK(log_values[0]==ComplexApprox(std::complex< double >{ 5.603777579195571, -6.1586603331188225 }))