triqs.gfs.descriptor_base.Const
- class triqs.gfs.descriptor_base.Const(C)[source]
Bases:
BaseConstant descriptor.
Fills the target Green’s function with a constant matrix (or scalar) on a frequency mesh. Used internally by
convert_scalar_to_const()to lift scalar leaves of a lazy expression.- Parameters:
- Cscalar or numpy.ndarray
Constant value. A scalar fills the diagonal of a square target space; a 2D array must match the target shape.
Methods
__call__(G)Fill
G.datawith the stored constant on every mesh point.