triqs.gfs.gf.Idx

class triqs.gfs.gf.Idx(*x)[source]

Bases: object

Tag wrapping a mesh-point linear index for use in Gf [] access.

Idx(i) (or Idx(i, j, ...) for a MeshProduct) marks its argument(s) as linear indices along the mesh axis rather than target-space indices, e.g. g[Idx(0)] returns the value of g at 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.MeshPoint

Mesh-point object that can also be used in Gf [] access.