triqs.sumk.sumk_discrete_from_lattice.SumkDiscreteFromLattice.resize_arrays
- SumkDiscreteFromLattice.resize_arrays(nk)
(Re)allocate the k-grid arrays for
nkpoints.Sets:
hoppingto a zero array of shape(nk, n_orbitals, n_orbitals);bz_pointsto a zero array of shape(nk, dim);bz_weightsto 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.