Given an N-dimensional KroneckerStencilMatrix, we want to construct its diagonal as an N-dimensional StencilDiagonalMatrix. To this end we will call the diagonal property of each 1D StencilMatrix, which returns a 1D StencilDiagonalMatrix, and use these N objects to create the N-dimensional StencilDiagonalMatrix.
Notes:
- 1D
StencilDiagonalMatrix objects are not distributed, while the N-dimensional StencilDiagonalMatrix is.
- Pyccel-izable kernels should be added if necessary.
Given an N-dimensional
KroneckerStencilMatrix, we want to construct its diagonal as an N-dimensionalStencilDiagonalMatrix. To this end we will call thediagonalproperty of each 1DStencilMatrix, which returns a 1DStencilDiagonalMatrix, and use these N objects to create the N-dimensionalStencilDiagonalMatrix.Notes:
StencilDiagonalMatrixobjects are not distributed, while the N-dimensionalStencilDiagonalMatrixis.