The symmetric linear system is derived by a standard 7-point discretization of the Poisson equation, with homogeneous Dirichlet boundary conditions, using a uniform grid[8].
The sparse matrix resulting from this discretization can be stored in a standard compressed row sparse storage format (the AIJ format), or alternatively, by using the structured grid infrastructure in PETSc or Hypre.