pado.math.sc_idft_1d

sc_idft_1d(G, M, delta_fx, delta_x)[source]

Compute 1D scaled inverse DFT for optical field reconstruction.

Uses the positive exponential and a delta_fx quadrature weight. It inverts sc_dft_1d when M*delta_x*delta_fx == 1. Leading axes and complex precision are preserved; arbitrary sampling need not invert.

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 complex output […, M]

Return type:

torch.Tensor

Examples

>>> M = 1000
>>> G = torch.ones(M, dtype=torch.complex64)
>>> field = sc_idft_1d(G, M, 1/(M*2e-6), 4e-6)