In section 7.1.1 of the textbook (https://www.cs.utexas.edu/users/flame/laff/alaff/chapter07-why-sparse-2d.html) we learned about a simple Partial Differential Equation (PDE), Poison's Equation. What would this problem look like in 3-dimensions?
Let
so that
becomes
or, equivalently,
If
This can be rewritten as
All this insights can be put together into a systems of linear equations where
Comparing the above figure in the previous section to a mesh (2-dimensional - 3 x 3) grid:
We can see the
The A matrix will have m numbers of sub and super diagonals (below and above the main diagonal). The main diagonal will be amplified and take on the value of
See my Create_mdiml_Poisson_problem_nzA() implement for more information.
- Creates the sparse format of the matrix corresponding to the left hand side matrix, A, in the discretized Poisson problem, , in dimension with
- Work for any positive integer, , not just = 1, 2, and 3.
Used the Create_mdiml_Poisson_problem_nzA() code to try different variation of dimensions to validate my guess on the sparsity pattern.









