triqs_dft_tools.block_structure.BlockStructure.check_matrix

BlockStructure.check_matrix(G, ish=None, space='solver')[source]

check whether the matrix G has the right structure

This throws an error if the structure of G is not the same as gf_struct_solver (for space=solver) or gf_struct_sumk (for space=sumk)..

Parameters:
Gdict of matrices or list of dict of matrices

matrix to check if it is a list, there should be as many entries as there are shells, and the check is performed for all shells (unless ish is given).

ishint

shell index default: 0 if G is just one matrix is given, check all if list of dicts is given

space‘solver’ or ‘sumk’

which space the structure should correspond to