triqs.mesh.mesh_product.MeshProduct
- class triqs.mesh.mesh_product.MeshProduct(*mlist)[source]
Bases:
objectCartesian product of TRIQS meshes.
A
MeshProductofkfactor meshes describes the set ofk-tuples of mesh points, one factor per mesh. It is the canonical mesh of multi-variable Green’s functions in TRIQS (seetriqs.gfs.Gf); iteration yields composite mesh points \((p_1, \ldots, p_k)\) viaitertools.product().- Parameters:
- *mlistmesh objects
The factor meshes, passed as separate positional arguments (variadic). Each must satisfy the TRIQS mesh interface (iterable over
MeshPoint, supportscopy,copy_fromandto_data_index).
Attributes
Tuple of factor meshes that make up the product.
Number of factor meshes (alias for
len(self.components)).Methods
copy()Return a deep copy of this product mesh.
copy_from(another)Deep-copy the contents of
anotherintoselffactor by factor.Size of each factor mesh.
to_data_index(index)Convert a tuple of per-factor indices to a tuple of data indices.