tightbinder.system.generate_all_combinations#

generate_all_combinations(ndim, n=1)[source]#

Auxiliary routine to generate an array of combinations of possible neighbouring unit cells.

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

  • int – Values on each axis go from [-n, n]. Defaults to 1.

Return type:

ndarray

Returns:

Array with vectors of length ndim and combinations.