triqs_modest.utils.analyze_gfs.analyze_degenerate_blocks
- triqs_modest.utils.analyze_gfs.analyze_degenerate_blocks()
Dispatched C++ function(s).
[1] (Gimp: BlockGf[MeshImFreq, 2], threshold: float = 1e-05) -> [[int]]
Find the generate blocks of a block GF by analyzing \(G(\tau=0)\) or \(G(i\omega_0)\) using the union-find algorithm.
We use the union-find algorithm to group the blocks of the block GF (matrices) into equivalence classes based on approximate numerical equality. If two matrices are approximately equal, their blocks are united into the same set. The final result is a partitioning of the blocks (matrices) into degenerate groups.
- Parameters:
- GimpBlockGf[MeshImFreq, 2]
Block Green’s function.
- thresholdfloat
Tolerance for equivalent of blocks.
- Returns:
- [[int]]
A list of equivalent blocks.