pado.math.sc_idft_1d¶
- sc_idft_1d(G, M, delta_fx, delta_x)[source]¶
Compute 1D scaled inverse DFT for optical field reconstruction.
- Parameters:
G (torch.Tensor) – Frequency domain input [M]
M (int) – Number of samples
delta_fx (float) – Frequency sampling interval (1/m)
delta_x (float) – Spatial sampling interval (m)
- Returns:
Spatial domain output [M]
- Return type:
Examples
>>> M = 1000 >>> G = torch.ones(M, dtype=torch.complex64) >>> field = sc_idft_1d(G, M, 1/(M*2e-6), 4e-6)