pylops.utils.signalprocessing.convmtx#
- pylops.utils.signalprocessing.convmtx(h, n, offset=0)[source]#
Convolution matrix
Makes a dense convolution matrix \(\mathbf{C}\) such that the dot product
np.dot(C, x)
is the convolution of the filter \(h\) centered on offset and the input signal \(x\).Equivalent of MATLAB’s convmtx function for: -
mode='full'
when used withoffset=0
. -mode='same'
when used withoffset=len(h)//2
(after truncating the rows asC[:n]
)