triqs.mesh.mesh_point.MeshValueGenerator
- class triqs.mesh.mesh_point.MeshValueGenerator(m)[source]
Bases:
objectIterator adaptor yielding the value of each mesh point of a given mesh.
Iterating over
MeshValueGenerator(m)is equivalent to(mp.value for mp in m). The class exists as a small helper to expose the values of a mesh under a stable, picklable name; it is re-exported fromtriqs.gfsfor use by the plotting and high-level Green’s function code.- Parameters:
- mmesh
Any object iterable over
MeshPointinstances (or any object exposing a.valueattribute on each element).
Attributes
m
(mesh) The wrapped mesh, stored verbatim.