Skip to content

Commit

Permalink
Minor simplifications in gf_density.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentzell committed Jan 14, 2022
1 parent 4ea113b commit 893c8de
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/c++/gfs/gf_density.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,12 @@ TEST(Gf, DensityFermionReFreq) {
int N = 1000;
auto h = matrix<dcomplex>{{{1 + 0i, 1i}, {-1i, 2 + 0i}}};
auto G = gf<refreq>{{-wmax, wmax, N}, {2, 2}};
nda::matrix<dcomplex> n_dag(G.target_shape());

//G(iw_) << inverse(w_ - h + eta); // FIXME
for (auto &w : G.mesh()) G[w] = inverse(w - h + 1e-8i);

auto n = triqs::gfs::density(G);
n_dag = dagger(n);
EXPECT_ARRAY_EQ(n, n_dag);
EXPECT_ARRAY_EQ(n, dagger(n));
}

MAKE_MAIN;

0 comments on commit 893c8de

Please sign in to comment.