pyoculus 0.1.1
Loading...
Searching...
No Matches
pyoculus.solvers.qfm Namespace Reference

Classes

class  QFM
 

Functions

 rfft1D (f)
 perform 1D Fourier transform from real space to cosine and sine
 
 irfft1D (cos_in, sin_in, nfft_multiplier=1)
 perform 1D inverse Fourier transform from cosine and sine to real space
 
 rfft2D (f, mpol=None, ntor=None)
 perform 2D Fourier transform from real space to cosine and sine
 
 irfft2D (cn, sn, nfft_theta=None, nfft_zeta=None)
 perform 2D Fourier transform from real space to cosine and sine
 

Variables

 nax = np.newaxis
 

Function Documentation

◆ irfft1D()

pyoculus.solvers.qfm.irfft1D ( cos_in,
sin_in,
nfft_multiplier = 1 )

perform 1D inverse Fourier transform from cosine and sine to real space

Parameters
cos_inThe cosine components. If cos_in is 2D, then the last axis will be the axis along which FFT was computed
sin_inThe sine components
nfft_multiplierThe number of output points will be this*(cos_in.shape[-1] - 1)
Returns
the function value in real space

◆ irfft2D()

pyoculus.solvers.qfm.irfft2D ( cn,
sn,
nfft_theta = None,
nfft_zeta = None )

perform 2D Fourier transform from real space to cosine and sine

Parameters
cnthe cosine components
snthe sine components
nfft_theta,thenumber of theta points on output
nfft_zeta,thenumber of zeta points on output
Returns
fout the function output

◆ rfft1D()

pyoculus.solvers.qfm.rfft1D ( f)

perform 1D Fourier transform from real space to cosine and sine

Parameters
fthe data in real space. If f is 2D, then the last axis will be the axis along which FFT is computed
Returns
cosout, sinout the cosine and sine components

◆ rfft2D()

pyoculus.solvers.qfm.rfft2D ( f,
mpol = None,
ntor = None )

perform 2D Fourier transform from real space to cosine and sine

Parameters
fthe data in real space. If f is 2D, then the last axis will be the axis along which FFT is computed
Returns
fftcos, fftsin the cosine and sine components, m from 0 to mpol, n from -ntor to ntor

Variable Documentation

◆ nax

pyoculus.solvers.qfm.nax = np.newaxis