tightbinder.utils.generate_basis_combinations#
- generate_basis_combinations(ndim)[source]#
Routine to generate the coefficients corresponding to linear combinations of some basis vectors. Possible coefficients for each vector are -1, 0 and 1.
- Parameters:
ndim (
int) – Dimension of the basis.- Return type:
ndarray- Returns:
Matrix where each row are the coefficients for a given combination of the basis vectors, i.e. [c1, c2, …] such that v = c1*basis_1 + c2*basis_2 + …