26 std::vector<NonLocalData> Txy;
27 Txy.emplace_back(0, 0.4,
PosType(0.1, 0.2, 0.3));
28 Txy.emplace_back(1, -0.4,
PosType(0.2, 0.3, 0.1));
29 Txy.emplace_back(1, -0.3,
PosType(0.2, 0.1, 0.3));
30 Txy.emplace_back(2, -0.2,
PosType(0.3, 0.1, 0.2));
31 Txy.emplace_back(2, -0.1,
PosType(0.3, 0.1, 0.2));
32 Txy.emplace_back(3, 0.0,
PosType(0.3, 0.2, 0.1));
35 CHECK(select0 ==
nullptr);
38 CHECK(select1 ==
nullptr);
42 CHECK(select2->PID == 1);
46 CHECK(select3->PID == 1);
50 CHECK(select4->PID == 2);
54 CHECK(select5->PID == 2);
56 auto select6 = t_op.
selectMove(
float(1) - std::numeric_limits<float>::epsilon(), Txy);
58 CHECK(select6->PID == 2);
64 CHECK(select7->Weight == Approx(-0.4));
71 CHECK(select9->Weight == Approx(-0.2));
void groupByElectron(size_t num_elec, const std::vector< NonLocalData > &txy)
sort all the Txy elements by electron
helper functions for EinsplineSetBuilder
TEST_CASE("complex_helper", "[type_traits]")
int thingsThatShouldBeInMyConstructor(const std::string &non_local_move_option, const double tau, const double alpha, const double gamma)
replacement for put because wouldn't it be cool to know what the classes configuration actually is...
Declaration of NonLocalTOperator.
REQUIRE(std::filesystem::exists(filename))
CHECK(log_values[0]==ComplexApprox(std::complex< double >{ 5.603777579195571, -6.1586603331188225 }))
TinyVector< double, 3 > PosType
const NonLocalData * selectMove(RealType prob, const std::vector< NonLocalData > &txy)
select the move for a given probability