pado.math.sc_dft_1d

sc_dft_1d(g, M, delta_x, delta_fx)[source]

Compute 1D scaled DFT for optical field propagation.

Parameters:
  • g (torch.Tensor) – Input complex field [M]

  • M (int) – Number of sample points

  • delta_x (float) – Spatial sampling interval (m)

  • delta_fx (float) – Frequency sampling interval (1/m)

Returns:

Transformed complex field [M]

Return type:

torch.Tensor

Examples

>>> M = 1000
>>> pitch = 2e-6
>>> g = torch.exp(-x**2 / (2 * (100*um)**2)).to(torch.complex64)
>>> G = sc_dft_1d(g, M, pitch, 1/(M*pitch))