pyoculus.solvers.qfm.rfft1D

pyoculus.solvers.qfm.rfft1D(f)

Perform 1D Fourier transform from real space to cosine and sine.

Parameters:

f (np.array) – The data in real space. If f is 2D, then the last axis will be the axis along which FFT is computed.

Returns:

A tuple containing:
  • np.array: The cosine components.

  • np.array: The sine components.

Return type:

tuple