treams.lattice.cython_lattice.ncube

treams.lattice.cython_lattice.ncube(d, n)

Number of points in a d-dimensional cube with side length 2n.

Computes \((2n + 1)^d\).

Parameters:
  • d (int) – Spatial dimensions

  • n (int) – Half size

Returns:

int