conv1¶
- dnois.fourier.conv1(f1: Tensor, f2: Tensor, dx: float | Tensor = None, dim: int = -1, out: Literal['full', 'same', 'valid'] = 'full', padding: int | str = 'linear', simpson: bool = False, real: bool = None) Tensor ¶
1D version of
conv()
.- Parameters:
f1 (Tensor) – The first sequence \(f_1\).
f2 (Tensor) – The second sequence \(f_2\).
dx – Sampling spacing, either a float, a 0D tensor, or a tensor broadcastable with
f1
andf2
. Omitted ifNone
(default).dim (int) – The dimension to be convolved. Default: -1.
out (str) – See
conv()
.padding (int or str) – See
conv()
.simpson (bool) – Whether to apply Simpson’s rule. Default:
True
.real (bool) – See
conv()
.
- Type:
float or Tensor
- Returns:
Convolution between
f1
andf2
. Complex if eitherf1
orf2
is complex orreal=False
, real-valued otherwise.- Return type:
Tensor