Concept checking that a type behaves like an in-memory Green's function.
A type G models triqs::gfs::MemoryGf if
- it owns a mesh of type M (a triqs::mesh::Mesh) accessible via mesh() and
- a data array accessible via data() that models nda::MemoryArray.
This is the constraint used throughout the Green's function algorithms.
- Template Parameters
-
| G | Type to check. |
| M | Expected mesh type. |
Definition at line 133 of file gf.hpp.
template<typename G, typename M typename std::remove_cvref_t<G>::mesh_t>
{ g.data() } -> nda::MemoryArray;
requires std::same_as<std::decay_t<decltype(g.mesh())>, M>;
}
Concept checking that a type behaves like an in-memory Green's function.