triqs.gfs.block2_gf.Block2Gf.copy_selected_blocks
- Block2Gf.copy_selected_blocks(selected_blocks1, selected_blocks2)[source]
Return a new
Block2Gfcontaining deep copies of the named blocks.- Parameters:
- selected_blocks1sequence of hashable
First-index block names to copy.
- selected_blocks2sequence of hashable
Second-index block names to copy.
- Returns:
- Block2Gf
New container with independent copies of the requested blocks.