/dports/science/ALPSCore/ALPSCore-2.2.0/gf/test/ |
H A D | gf_new_test.cpp | 15 using namespace alps::gf; 19 alps::gf::index_mesh y(10); in TEST() 23 …greenf<double, alps::gf::matsubara_positive_mesh, alps::gf::index_mesh, alps::gf::itime_mesh, alps… in TEST() 40 alps::gf::index_mesh y(10); in TEST() 49 …greenf<double, alps::gf::matsubara_positive_mesh, alps::gf::index_mesh, alps::gf::itime_mesh, alps… in TEST() 225 …greenf<double, alps::gf::matsubara_positive_mesh, alps::gf::index_mesh, alps::gf::itime_mesh> g(x,… in TEST() 266 …greenf<double, alps::gf::matsubara_positive_mesh, alps::gf::itime_mesh, alps::gf::index_mesh > g(x… in TEST() 297 …greenf<double, alps::gf::matsubara_positive_mesh, alps::gf::index_mesh, alps::gf::index_mesh > g(x… in TEST() 298 …const greenf<double, alps::gf::matsubara_positive_mesh, alps::gf::index_mesh, alps::gf::index_mesh… in TEST() 326 …greenf<double, alps::gf::matsubara_positive_mesh, alps::gf::index_mesh, alps::gf::index_mesh > g1(… in TEST() [all …]
|
H A D | mesh_test.cpp | 16 alps::testing::unique_file ufile("gf.h5.", alps::testing::unique_file::REMOVE_NOW); in TEST() 18 namespace g=alps::gf; in TEST() 37 namespace g=alps::gf; in TEST() 79 …alps::gf::matsubara_mesh<alps::gf::mesh::POSITIVE_NEGATIVE> mesh1(5.0, 20, alps::gf::statistics::B… in TEST() 93 …alps::gf::matsubara_mesh<alps::gf::mesh::POSITIVE_NEGATIVE> mesh1(5.0, 20, alps::gf::statistics::B… in TEST() 94 …alps::gf::matsubara_mesh<alps::gf::mesh::POSITIVE_NEGATIVE> mesh2(7.0, 40, alps::gf::statistics::F… in TEST() 100 alps::gf::matsubara_mesh<alps::gf::mesh::POSITIVE_NEGATIVE> mesh1(5.0, 20); in TEST() 101 alps::gf::matsubara_mesh<alps::gf::mesh::POSITIVE_NEGATIVE> mesh2(5.0, 20); in TEST() 102 alps::gf::matsubara_mesh<alps::gf::mesh::POSITIVE_NEGATIVE> mesh3(4.0, 20); in TEST() 115 namespace g=alps::gf; in TEST() [all …]
|
H A D | gf_new_tail_test.cpp | 13 namespace gfns=alps::gf; 27 typedef alps::gf::matsubara_mesh<alps::gf::mesh::POSITIVE_ONLY> matsubara_mesh; 38 …typedef gfns::greenf<double, alps::gf::matsubara_positive_mesh, alps::gf::index_mesh, alps::gf::it… in TEST_F() 39 …typedef gfns::greenf<double, alps::gf::index_mesh, alps::gf::itime_mesh, alps::gf::legendre_mesh> … in TEST_F() 45 alps::gf::index_mesh y(10); in TEST_F() 47 …typedef gfns::greenf<double, alps::gf::matsubara_positive_mesh, alps::gf::index_mesh, alps::gf::it… in TEST_F() 48 typedef gfns::greenf<double, alps::gf::index_mesh, alps::gf::itime_mesh> tail; in TEST_F() 49 …gfns::greenf<double, alps::gf::matsubara_positive_mesh, alps::gf::index_mesh, alps::gf::itime_mesh… in TEST_F() 50 …g(alps::gf::matsubara_positive_mesh::index_type(0), alps::gf::index_mesh::index_type(0), alps::gf:… in TEST_F() 57 t1(alps::gf::index_mesh::index_type(0), alps::gf::itime_mesh::index_type(3)) = 1.0; in TEST_F() [all …]
|
H A D | four_index_gf_pn_test.cpp | 19 typedef alps::gf::matsubara_mesh<alps::gf::mesh::POSITIVE_ONLY> matsubara_meshp_type; 20 typedef alps::gf::matsubara_mesh<alps::gf::mesh::POSITIVE_NEGATIVE> matsubara_meshn_type; 25 typedef alps::gf::four_index_gf<std::complex<double>, 27 alps::gf::momentum_index_mesh, 28 alps::gf::momentum_index_mesh, 33 alps::gf::momentum_index_mesh, 44 alps::gf::index_mesh(nspins)), in TestGFM() 48 alps::gf::index_mesh(nspins)) in TestGFM() 55 alps::gf::momentum_index i; i=2; in TEST_F() 56 alps::gf::momentum_index j=alps::gf::momentum_index(3); in TEST_F() [all …]
|
H A D | fourier_test.cpp | 21 typedef alps::gf::one_index_gf<double, alps::gf::index_mesh> density_matrix_type; 28 g_omega(alps::gf::omega_sigma_gf(alps::gf::matsubara_positive_mesh(beta,nfreq), in AtomicFourierTestGF() 29 alps::gf::index_mesh(2))), in AtomicFourierTestGF() 30 g_tau(alps::gf::itime_sigma_gf(alps::gf::itime_mesh(beta,ntau),alps::gf::index_mesh(2))), in AtomicFourierTestGF() 71 …EXPECT_NEAR(g_tau(alps::gf::itime_mesh::index_type(0 ),alps::gf::index(0)), -(1-density()), 1.… in TEST_F() 72 …EXPECT_NEAR(g_tau(alps::gf::itime_mesh::index_type(ntau-1),alps::gf::index(0)), -density() , 1.… in TEST_F() 78 unity(alps::gf::index(0))=1; in TEST_F() 79 unity(alps::gf::index(1))=1; in TEST_F() 96 unity(alps::gf::index(0))=1; in TEST_F() 97 unity(alps::gf::index(1))=1; in TEST_F() [all …]
|
H A D | itime_gf_test.cpp | 18 alps::gf::itime_k1_k2_sigma_gf gf; 19 alps::gf::itime_k1_k2_sigma_gf gf2; 32 alps::gf::itime_index tau; tau=4; in TEST_F() 33 alps::gf::momentum_index i; i=2; in TEST_F() 34 alps::gf::momentum_index j=alps::gf::momentum_index(3); in TEST_F() 35 alps::gf::index sigma(1); in TEST_F() 45 alps::gf::momentum_index i; i=2; in TEST_F() 46 alps::gf::momentum_index j=alps::gf::momentum_index(3); in TEST_F() 47 alps::gf::index sigma(1); in TEST_F() 63 namespace g=alps::gf; in TEST_F() [all …]
|
H A D | four_index_gf_test.cpp | 13 alps::gf::momentum_index j=alps::gf::momentum_index(3); in TEST_F() 14 alps::gf::index sigma(1); in TEST_F() 26 alps::gf::momentum_index j=alps::gf::momentum_index(3); in TEST_F() 27 alps::gf::index sigma(1); in TEST_F() 39 alps::gf::momentum_index j=alps::gf::momentum_index(3); in TEST_F() 58 alps::gf::momentum_index j=alps::gf::momentum_index(3); in TEST_F() 71 namespace g=alps::gf; in TEST_F() 91 namespace g=alps::gf; in TEST_F() 117 namespace g=alps::gf; in TEST_F() 144 namespace g=alps::gf; in TEST_F() [all …]
|
H A D | two_index_gf_test.cpp | 20 typedef alps::gf::matsubara_mesh<alps::gf::mesh::POSITIVE_ONLY> matsubara_mesh; 33 alps::gf::index sigma(1); in TEST_F() 84 namespace g=alps::gf; in TEST_F() 107 namespace g=alps::gf; in TEST_F() 148 alps::gf::two_index_gf<double, alps::gf::index_mesh,alps::gf::index_mesh> gf2(mesh,mesh); in TEST_F() 153 gf_stream_by_hand<<alps::gf::index_mesh(nao)<<alps::gf::index_mesh(nao); in TEST_F() 167 namespace g=alps::gf; in TEST_F() 189 namespace g=alps::gf; in TEST_F() 211 namespace g=alps::gf; in TEST_F() 254 namespace g=alps::gf; in TEST_F() [all …]
|
/dports/science/ALPSCore/ALPSCore-2.2.0/accumulators/test/ |
H A D | binop_with_constant.cpp | 30 using namespace alps::accumulators::testing; 113 std::pair<alps::accumulators::NoBinningAccumulator<float>,float>, 114 std::pair<alps::accumulators::NoBinningAccumulator<float>,double>, 116 std::pair<alps::accumulators::NoBinningAccumulator<double>,float>, 117 std::pair<alps::accumulators::NoBinningAccumulator<double>,double>, 122 std::pair<alps::accumulators::LogBinningAccumulator<float>,float>, 123 std::pair<alps::accumulators::LogBinningAccumulator<float>,double>, 125 std::pair<alps::accumulators::LogBinningAccumulator<double>,float>, 126 std::pair<alps::accumulators::LogBinningAccumulator<double>,double>, 131 std::pair<alps::accumulators::FullBinningAccumulator<float>,float>, [all …]
|
H A D | save_load.cpp | 94 alps::hdf5::archive ar(h5name,"w"); in save() 102 alps::hdf5::archive ar(h5name,"w"); in load() 111 alps::accumulators::MeanAccumulator<double>, 112 alps::accumulators::NoBinningAccumulator<double>, 116 alps::accumulators::MeanAccumulator<float>, 117 alps::accumulators::NoBinningAccumulator<float>, 121 alps::accumulators::MeanAccumulator<floatvec>, 126 alps::accumulators::MeanAccumulator<doublevec>, 164 alps::accumulators::result_set new_results; in TYPED_TEST() 199 alps::accumulators::result_set new_results; in TYPED_TEST() [all …]
|
H A D | save_load2.cpp | 19 using namespace alps::accumulators::testing; 49 alps::hdf5::archive ar(fname,"w"); in TestSaveAccumulator() 58 alps::hdf5::archive ar(fname,"w"); in TestSaveResult() 68 alps::hdf5::archive ar(fname,"w"); in TestSaveLoadAccumulator() 71 alps::accumulators::accumulator_set m1; in TestSaveLoadAccumulator() 73 alps::hdf5::archive ar(fname,"r"); in TestSaveLoadAccumulator() 80 const alps::accumulators::result_set r(m); in TestSaveLoadAccumulator() 81 const alps::accumulators::result_set r1(m1); in TestSaveLoadAccumulator() 97 alps::hdf5::archive ar(fname,"w"); in TestSaveLoadResult() 100 alps::accumulators::result_set r1; in TestSaveLoadResult() [all …]
|
H A D | mpi_merge.cpp | 136 alps::accumulators::NoBinningAccumulator<double>, 137 alps::accumulators::LogBinningAccumulator<double>, 138 alps::accumulators::FullBinningAccumulator<double>, 140 alps::accumulators::NoBinningAccumulator<float>, 141 alps::accumulators::LogBinningAccumulator<float>, 142 alps::accumulators::FullBinningAccumulator<float>, 148 alps::accumulators::NoBinningAccumulator<floatvec>, 157 alps::mpi::communicator comm; in TYPED_TEST() 164 alps::mpi::communicator comm; in TYPED_TEST() 172 alps::mpi::environment env(argc, argv); in main() [all …]
|
/dports/science/ALPSCore/ALPSCore-2.2.0/alea/test/ |
H A D | transform.cpp | 114 alps::alea::mean_acc<double> 115 , alps::alea::var_acc<double> 116 , alps::alea::cov_acc<double> 118 , alps::alea::batch_acc<double> 143 alps::alea::transform(alps::alea::linear_prop(), tf, norm_res); in TEST() 156 alps::alea::column<T> operator() (const alps::alea::column<T> &in) const override { in operator ()() 178 alps::alea::transform(alps::alea::jackknife_prop(), tf, res); in TEST() 191 alps::alea::column<T> operator() (const alps::alea::column<T> &in) const override { in operator ()() 222 auto tf_res = alps::alea::transform(alps::alea::linear_prop(), in test_result() 234 alps::alea::var_acc<double> [all …]
|
H A D | mpi_twogauss.cpp | 21 alps::mpi::communicator comm; in TEST() 22 alps::alea::mpi_reducer red(comm, 0); in TEST() 33 alps::mpi::communicator comm; in TEST() 34 alps::alea::mpi_reducer red(comm, 0); in TEST() 43 alps::alea::mpi_reducer red_(alps::mpi::communicator(), 0); in TEST() 112 alps::alea::mpi_reducer red_; 116 alps::alea::mean_acc<double> 117 , alps::alea::var_acc<double> 118 , alps::alea::cov_acc<double> 120 , alps::alea::batch_acc<double> [all …]
|
H A D | result.cpp | 17 typedef alps::alea::traits<Acc> acc_traits; 22 typedef alps::alea::traits<result_type> result_traits; 74 alps::alea::result generic_res; 78 alps::alea::mean_acc<double> 79 , alps::alea::mean_acc<std::complex<double> > 80 , alps::alea::var_acc<double> 81 , alps::alea::var_acc<std::complex<double> > 82 , alps::alea::cov_acc<double> 83 , alps::alea::cov_acc<std::complex<double> > 84 , alps::alea::batch_acc<double> [all …]
|
H A D | twogauss.cpp | 106 alps::alea::hdf5_serializer ser(ar, ""); in test_serialize() 108 alps::alea::serialize(ser, "", res); in test_serialize() 149 alps::alea::mean_acc<double> 150 , alps::alea::var_acc<double> 151 , alps::alea::cov_acc<double> 152 , alps::alea::autocorr_acc<double> 153 , alps::alea::batch_acc<double> 193 alps::alea::var_acc<double> 194 , alps::alea::cov_acc<double> 236 alps::alea::var_acc<double> [all …]
|
H A D | empty.cpp | 35 alps::alea::mean_acc<double> 36 , alps::alea::mean_acc<std::complex<double> > 37 , alps::alea::var_acc<double> 38 , alps::alea::var_acc<std::complex<double> > 39 , alps::alea::var_acc<std::complex<double>, alps::alea::elliptic_var > 40 , alps::alea::cov_acc<double> 41 , alps::alea::cov_acc<std::complex<double> > 42 , alps::alea::cov_acc<std::complex<double>, alps::alea::elliptic_var > 88 alps::alea::var_acc<double> 89 , alps::alea::var_acc<std::complex<double> > [all …]
|
/dports/science/ALPSCore/ALPSCore-2.2.0/hdf5/test/ |
H A D | hdf5_misc.cpp | 16 using alps::make_pvp; in save() 20 using alps::make_pvp; in load() 28 alps::testing::unique_file ufile("data.h5.", alps::testing::unique_file::REMOVE_NOW); in TEST() 37 alps::hdf5::archive ar(data_h5); in TEST() 39 ar >> alps::make_pvp("/value", i); in TEST() 43 alps::hdf5::archive ar(data_h5); in TEST() 45 ar >> alps::make_pvp("/value", s); in TEST() 57 alps::hdf5::archive ar(data_h5); in TEST() 68 alps::hdf5::archive ar(data_h5); in TEST() 82 alps::hdf5::archive ar(data_h5); in TEST() [all …]
|
H A D | hdf5_open_intmode.cpp | 16 alps::testing::unique_file ufile("hdf5_open.h5.", alps::testing::unique_file::REMOVE_NOW); in TEST() 19 …ASSERT_THROW(alps::hdf5::archive ar(h5name,alps::hdf5::archive::READ), alps::hdf5::archive_not_fo… in TEST() 20 …ASSERT_THROW(alps::hdf5::archive ar2(h5name,alps::hdf5::archive::READ), alps::hdf5::archive_not_fo… in TEST() 23 alps::hdf5::archive ar(h5name,alps::hdf5::archive::WRITE); // same as "a" in TEST() 27 alps::hdf5::archive ar(h5name,alps::hdf5::archive::WRITE); // same as "a" in TEST() 36 alps::hdf5::archive ar(h5name,alps::hdf5::archive::READ); in TEST() 47 alps::hdf5::archive ar(h5name,0); in TEST() 61 alps::testing::unique_file ufile("hdf5_open.h5.", alps::testing::unique_file::REMOVE_NOW); in TEST() 64 alps::hdf5::archive ar(h5name,alps::hdf5::archive::WRITE); in TEST() 68 alps::hdf5::archive ar(h5name, alps::hdf5::archive::WRITE|alps::hdf5::archive::MEMORY); in TEST() [all …]
|
H A D | hdf5_open_strmode.cpp | 16 alps::testing::unique_file ufile("hdf5_open.h5.", alps::testing::unique_file::REMOVE_NOW); in TEST() 19 ASSERT_THROW(alps::hdf5::archive ar(h5name,"r"), alps::hdf5::archive_not_found); in TEST() 20 ASSERT_THROW(alps::hdf5::archive ar2(h5name,"r"), alps::hdf5::archive_not_found); in TEST() 31 alps::hdf5::archive ar(h5name,"a"); in TEST() 35 alps::hdf5::archive ar(h5name,"r"); in TEST() 46 alps::hdf5::archive ar(h5name,""); in TEST() 57 alps::hdf5::archive ar(h5name); in TEST() 71 alps::testing::unique_file ufile("hdf5_open.h5.", alps::testing::unique_file::REMOVE_NOW); in TEST() 74 alps::hdf5::archive ar(h5name,"w"); in TEST() 78 EXPECT_THROW(alps::hdf5::archive ar(h5name,"wl"), alps::hdf5::wrong_mode); in TEST() [all …]
|
/dports/science/ALPSCore/ALPSCore-2.2.0/utilities/include/alps/numeric/ |
H A D | boost_multi_array_functions.hpp | 13 namespace alps { namespace 16 using alps::sin; 17 using alps::cos; 18 using alps::tan; 19 using alps::sinh; 20 using alps::cosh; 25 using alps::abs; 27 using alps::exp; 28 using alps::log; 31 using alps::sq; [all …]
|
/dports/science/ALPSCore/ALPSCore-2.2.0/mc/test/ |
H A D | reduce_unavailable_results.cpp | 22 class sim1 : public alps::mcbase { 26 alps::mcbase(p, seed_offset), in sim1() 51 alps::mpi::communicator comm; 55 alps::mpi::communicator c; in TEST() 65 alps::mcmpiadapter<sim1> sim(p, c, alps::check_schedule(0.001, 60)); in TEST() 70 … alps::results_type<sim1>::type res = alps::collect_results(sim); in TEST() 81 alps::mcmpiadapter<sim1> sim(p, c, alps::check_schedule(0.001, 60)); in TEST() 86 … alps::results_type<sim1>::type res = alps::collect_results(sim); in TEST() 97 alps::mcmpiadapter<sim1> sim(p, c, alps::check_schedule(0.001, 60)); in TEST() 102 … alps::results_type<sim1>::type res = alps::collect_results(sim); in TEST() [all …]
|
/dports/science/ALPSCore/ALPSCore-2.2.0/params/test/old/ |
H A D | compare.cpp | 12 alps::params p; 312 EXPECT_THROW(p["1.25"]> 0, alps::params::type_mismatch); in TEST_F() 313 EXPECT_THROW(p["1.25"]>=0, alps::params::type_mismatch); in TEST_F() 314 EXPECT_THROW(p["1.25"]!=0, alps::params::type_mismatch); in TEST_F() 315 EXPECT_THROW(p["1.00"]>=1, alps::params::type_mismatch); in TEST_F() 316 EXPECT_THROW(p["1.00"]<=1, alps::params::type_mismatch); in TEST_F() 317 EXPECT_THROW(p["1.00"]==1, alps::params::type_mismatch); in TEST_F() 318 EXPECT_THROW(p["1.25"]< 2, alps::params::type_mismatch); in TEST_F() 319 EXPECT_THROW(p["1.25"]<=2, alps::params::type_mismatch); in TEST_F() 320 EXPECT_THROW(p["1.25"]!=2, alps::params::type_mismatch); in TEST_F() [all …]
|
H A D | common_param_tests.hpp | 21 using namespace alps::params_ns::testing; 72 alps::params& param; 88 const alps::params& cpar=param; in access_const() 93 EXPECT_THROW(cpar["missing_nodef"], alps::params::uninitialized_value); in access_const() 94 EXPECT_THROW(cpar["nosuchname"], alps::params::uninitialized_value); in access_const() 431 EXPECT_THROW(param["present_def"]=v2, alps::params::type_mismatch); in assign_larger_type() 435 EXPECT_THROW(param["missing_def"]=v2, alps::params::type_mismatch); in assign_larger_type() 443 EXPECT_THROW(param["assigned"]=v2, alps::params::type_mismatch); in assign_larger_type() 465 EXPECT_THROW(param["present_def"]=v2, alps::params::type_mismatch); in assign_incompatible_type() 469 EXPECT_THROW(param["missing_def"]=v2, alps::params::type_mismatch); in assign_incompatible_type() [all …]
|
/dports/science/ALPSCore/ALPSCore-2.2.0/accumulators/src/feature/ |
H A D | error.cpp | 17 namespace alps { namespace 28 using alps::numeric::sqrt; in error() 29 using alps::numeric::operator/; in error() 30 using alps::numeric::operator-; in error() 31 using alps::numeric::operator*; in error() 42 using alps::numeric::operator*; in operator ()() 43 using alps::numeric::operator+=; in operator ()() 59 using alps::numeric::operator*; in load() 60 using alps::numeric::operator+; in load() 72 using alps::hdf5::get_extent; in can_load() [all …]
|