triqs.gfs.block2_gf.Block2Gf.view_selected_blocks

Block2Gf.view_selected_blocks(selected_blocks1, selected_blocks2)[source]

Return a new Block2Gf containing views of the named blocks.

Parameters:
selected_blocks1sequence of hashable

First-index block names to expose. Must all exist in self.

selected_blocks2sequence of hashable

Second-index block names to expose. Must all exist in self.

Returns:
Block2Gf

New container holding view-references to the requested blocks, in the requested order.