triqs.gf.block_gf.BlockGf.__init__
- BlockGf.__init__(**kwargs)[source]
There are several possible constructors, which accept only keyword arguments.
BlockGf(block_list = list of blocks, name_list = list of names, make_copies = False)
block_list
: list of blocks of Green’s functions.name_list
: list of the names of the blocks, e.g. [“up”,”down”]. Default to [“0”, “1”, …]make_copies
: If True, build the Green’s function from a copy of the blocks (default: False).
BlockGf(mesh = mesh, gf_struct = block structure, target_rank = rank of target space)
mesh
: The mesh used to construct each blockgf_struct
: List of pairs [ (str,int), … ] providing the block name and its linear sizetarget_rank
: The rank of the target space of each block (default: 2)
BlockGf(name_block_generator, make_copies = False)
name_block_generator
: a generator of (name, block)make_copies
: If True, build the Green’s function from a copy of the blocks (default: False).