SimPEG.utils.av#

SimPEG.utils.av(n)[source]#

Create 1D averaging operator from nodes to cell-centers.

For n cells, the 1D averaging operator from nodes to centerss is sparse, has shape (n, n+1) and takes the form:

[1/21/21/21/21/21/2]
Parameters
nint

Number of cells

Returns
(n, n + 1) scipy.sparse.csr_matrix

The 1D averaging operator from nodes to centers.