triqs_modest.module.analyze_degenerate_blocks
- triqs_modest.module.analyze_degenerate_blocks()
Function dispatched to the following (C++) functions:
[1] (Gimp: BlockGf[MeshImFreq, 2], threshold: float = 1e-05) -> [[int]]
Find the generate blocks of a BlockGf by analyzing G(τ=0) or G(iω₀) using the union-find algorithm.
We use the union-find algorithm to group the blocks of the BlockGf (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
- Gimp:
Block Green’s function
- threshold:
tolerance for equivalence of blocks
- Returns
A list of equivalent blocks