triqs.sumk.sumk_discrete_from_lattice.SumkDiscreteFromLattice.resize_arrays

SumkDiscreteFromLattice.resize_arrays(nk)

(Re)allocate the k-grid arrays for nk points.

Sets:

  • hopping to a zero array of shape (nk, n_orbitals, n_orbitals);

  • bz_points to a zero array of shape (nk, dim);

  • bz_weights to a uniform array of shape (nk,), normalised so that the weights sum to one.

Their contents (other than the weights) must be filled in by the caller; this method does not initialise hoppings or k-vectors.

Parameters:
nkint

Total number of k-points stored on the grid.