TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
triqs::gfs::MemoryGf

#include <triqs/gfs/gf/gf.hpp>

Detailed Description

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
GType to check.
MExpected mesh type.

Definition at line 133 of file gf.hpp.

Concept definition

template<typename G, typename M typename std::remove_cvref_t<G>::mesh_t>
concept triqs::gfs::MemoryGf = mesh::Mesh<M> and requires(G g) {
{ 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.
Definition gf.hpp:133
Concept for a mesh.
Definition concepts.hpp:85