pystella/fourier/rayleigh.py
def init_transverse_vector(self, projector, vector, queue=None, **kwargs):
        """
        A wrapper which calls :meth:`generate` to initialize a transverse
        three-vector field in Fourier space and returns its inverse Fourier
        transform.
        Each component will have the same power spectrum.

        :arg projector: A :class:`Projector` used to project out
            longitudinal components of the vector field.

        :arg vector: The array in which the vector field will be stored.

        The following keyword arguments are recognized:

        :arg queue: A :class:`pyopencl.CommandQueue`.
            Defaults to ``vector.queue``.

        Any additional keyword arguments are passed to :meth:`generate`.
        """

        queue = queue or vector.queue

        vector_k = cla.empty(queue, (3,)+self.fft.shape(True), self.cdtype)

        for mu in range(3):
            fk = self.generate(queue, **kwargs)
            vector_k[mu].set(fk)

        projector.transversify(queue, vector_k)

        for mu in range(3):
            self.fft.idft(vector_k[mu], vector[mu])

        A wrapper which calls :meth:`generate` to initialize a transverse
        three-vector field in Fourier space and returns its inverse Fourier
        transform.
        Each component will have the same power spectrum.

        :arg projector: A :class:`Projector` used to project out
            longitudinal components of the vector field.

        :arg vector: The array in which the vector field will be stored.

        The following keyword arguments are recognized:

        :arg queue: A :class:`pyopencl.CommandQueue`.
            Defaults to ``vector.queue``.

        Any additional keyword arguments are passed to :meth:`generate`.
        
A wrapper which calls :meth:`generate` to initialize a transverse
three-vector field in Fourier space and returns its inverse Fourier
transform.
Each component will have the same power spectrum.
A wrapper which calls : meth : ` generate ` to initialize a transverse three - vector field in Fourier space and returns its inverse Fourier transform . Each component will have the same power spectrum .
def init_transverse_vector(self, projector, vector, queue=None, **kwargs):
        queue = queue or vector.queue
        vector_k = cla.empty(queue, (3,)+self.fft.shape(True), self.cdtype)
        for mu in range(3):
            fk = self.generate(queue, **kwargs)
            vector_k[mu].set(fk)
        projector.transversify(queue, vector_k)
        for mu in range(3):
            self.fft.idft(vector_k[mu], vector[mu])
def init_transverse_vector ( self , projector , vector , queue = None , ** kwargs ) : queue = queue or vector . queue vector_k = cla . empty ( queue , ( 3 , ) + self . fft . shape ( True ) , self . cdtype ) for mu in range ( 3 ) : fk = self . generate ( queue , ** kwargs ) vector_k [ mu ] . set ( fk ) projector . transversify ( queue , vector_k ) for mu in range ( 3 ) : self . fft . idft ( vector_k [ mu ] , vector [ mu ] )
A wrapper which calls :meth:`generate` to initialize a transverse
three-vector field in Fourier space and returns its inverse Fourier
transform.
A wrapper which calls : meth : ` generate ` to initialize a transverse three - vector field in Fourier space and returns its inverse Fourier transform .
"""
        A wrapper which calls :meth:`generate` to initialize a transverse
        three-vector field in Fourier space and returns its inverse Fourier
        transform.
        Each component will have the same power spectrum.

        :arg projector: A :class:`Projector` used to project out
            longitudinal components of the vector field.

        :arg vector: The array in which the vector field will be stored.

        The following keyword arguments are recognized:

        :arg queue: A :class:`pyopencl.CommandQueue`.
            Defaults to ``vector.queue``.

        Any additional keyword arguments are passed to :meth:`generate`.
        """
self
projector
A :class:`Projector` used to project out
longitudinal components of the vector field.
A : class : ` Projector ` used to project out longitudinal components of the vector field .
vector
The array in which the vector field will be stored.
The following keyword arguments are recognized.
The array in which the vector field will be stored . The following keyword arguments are recognized .
queue
A :class:`pyopencl.CommandQueue`.
Defaults to ``vector.queue``.

Any additional keyword arguments are passed to :meth:`generate`.
A : class : ` pyopencl . CommandQueue ` . Defaults to ` ` vector . queue ` ` . Any additional keyword arguments are passed to : meth : ` generate ` .