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:
- Parameters
- n
int
Number of cells
- n
- Returns
- (
n
,n
+ 1)scipy.sparse.csr_matrix
The 1D averaging operator from nodes to centers.
- (