triqs.gfs.descriptor_base.BaseBlock
- class triqs.gfs.descriptor_base.BaseBlock(G, *args, **kw)[source]
Bases:
BaseBlock-aware descriptor base.
For a single-
Gftarget this behaves likeBase. For aBlockGftarget the descriptor builds one sub-descriptor per block, exposed through iteration so that__lshift__()can dispatch them block-wise.- Parameters:
- GGf or BlockGf
Reference Green’s function the descriptor will eventually act on. Captured to detect the block-target case.
- *args, **kw
Forwarded to the per-block sub-descriptor constructor.
Attributes
G
(Gf or BlockGf) Captured target (inherited from
Base).descriptor_iter
(generator of BaseBlock) Lazily-constructed per-block sub-descriptors. Only present when
Gis aBlockGf; seeis_block_descriptor().Methods
Whether the captured target is a
BlockGf.