triqs.gfs.block_gf.BlockGf.copy_from

BlockGf.copy_from(G2)[source]

Copy the data of G2 into self block by block.

Parameters:
G2BlockGf

Source container. Must have the same number of blocks in the same order and identical per-block target_shape.

Raises:
RuntimeError

If any pair of blocks has incompatible target shape.