generate_convolution_matrix

hcipy.util.generate_convolution_matrix(grid, kernel)

Create the matrix that applies a convolution with kernel.

The created matrix is a sparse matrix.

Parameters:
gridGrid

The Grid for which the convolution matrix will be created.

kernelField or array_like

The convolution kernel

Returns:
array_like

The matrix that applies the convolution.