dconv2

dnois.fourier.dconv2(f1: Tensor, f2: Tensor, dims: tuple[int, int] = (-2, -1), out: Literal['full', 'same', 'valid'] = 'full', padding: int | tuple[int, int] | str = 'linear', real: bool = None) Tensor

2D version of dconv().

Parameters:
  • f1 (Tensor) – The first array \(f_1\).

  • f2 (Tensor) – The second array \(f_2\).

  • dims (tuple[int, int]) – The dimensions to be convolved. Default: (-2,-1).

  • out (str) – See dconv().

  • padding (int, tuple[int, int] or str) – See dconv().

  • real (bool) – See dconv().

Returns:

Convolution between f1 and f2. Complex if either f1 or f2 is complex or real=False, real-valued otherwise.

Return type:

Tensor