TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
gfs.hpp
#include "./arrays.hpp"
#include "../gfs/gf_tests.hpp"
#include "../gfs.hpp"
#include "../utility/exceptions.hpp"

Detailed Description

GoogleTest helpers for comparing Green's functions, tails and block Green's functions.

Definition in file gfs.hpp.

Go to the source code of this file.

Macros

#define EXPECT_BLOCK2_GF_NEAR(X, ...)
 Non-fatal GoogleTest assertion that two Block2 Green's functions are close (see test_block2_gfs_are_close).
#define EXPECT_BLOCK_GF_NEAR(X, ...)
 Non-fatal GoogleTest assertion that two block Green's functions are close (see test_block_gfs_are_close).
#define EXPECT_GF_NEAR(X, ...)
 Non-fatal GoogleTest assertion that two Green's functions are close (see test_gfs_are_close).
#define EXPECT_TAIL_NEAR(X, ...)
 Non-fatal GoogleTest assertion that two tails are close (see test_tails_are_close).

Functions

template<typename X, typename Y>
::testing::AssertionResult test_block2_gfs_are_close (X const &x, Y const &y, double precision=1.e-6)
 Check that two block-of-block (Block2) Green's functions are element-wise close.
template<typename X, typename Y>
::testing::AssertionResult test_block_gfs_are_close (X const &x, Y const &y, double precision=1.e-6)
 Check that two block Green's functions are element-wise close.
template<typename X, typename Y>
::testing::AssertionResult test_gfs_are_close (X const &x, Y const &y, double precision=1.e-6)
 Check that two Green's functions are element-wise close.
template<typename X, typename Y>
::testing::AssertionResult test_tails_are_close (X const &x, Y const &y, double precision=1.e-6)
 Check that the high-frequency tails of two Green's functions are element-wise close.