triqs.gfs.gf.Idx
- class triqs.gfs.gf.Idx(*x)[source]
Bases:
objectTag wrapping a mesh-point linear index for use in
Gf[]access.Idx(i)(orIdx(i, j, ...)for aMeshProduct) marks its argument(s) as linear indices along the mesh axis rather than target-space indices, e.g.g[Idx(0)]returns the value ofgat the first mesh point.- Parameters:
- *xint
One index per mesh axis. A single argument is stored as a scalar; multiple arguments are stored as a tuple.
Attributes
index
(int or tuple of int) The wrapped index (scalar for a single mesh, tuple for a
MeshProduct).See also
triqs.mesh.mesh_point.MeshPointMesh-point object that can also be used in
Gf[]access.