tightbinder.system.generate_half_combinations#

generate_half_combinations(ndim)[source]#

Auxiliary routine to generate an array of combinations of possible neighbouring unit cells. NB: It only generates half of them, since we are going to use hermiticity to generate the Hamiltonian.

Parameters:

ndim (int) – Number of axis to make the combinations.

Return type:

ndarray

Returns:

Half the combinations.