pystella/fourier/projectors.py
def vec_to_pol(self, queue, plus, minus, vector):
        """
        Projects the components of a vector field onto the basis of plus and
        minus polarizations.

        :arg queue: A :class:`pyopencl.CommandQueue`.

        :arg plus: The array into which will be stored the
            momentum-space field of the plus polarization.

        :arg minus: The array into which will be stored the
            momentum-space field of the minus polarization.

        :arg vector: The array whose polarization
            components will be computed.
            Must have shape ``(3,)+k_shape``, where ``k_shape`` is the shape of a
            single momentum-space field array.

        :returns: The :class:`pyopencl.Event` associated with the kernel invocation.
        """

        evt, _ = self.vec_to_pol_knl(queue, **self.eff_mom,
                                     vector=vector, plus=plus, minus=minus)
        return evt

        Projects the components of a vector field onto the basis of plus and
        minus polarizations.

        :arg queue: A :class:`pyopencl.CommandQueue`.

        :arg plus: The array into which will be stored the
            momentum-space field of the plus polarization.

        :arg minus: The array into which will be stored the
            momentum-space field of the minus polarization.

        :arg vector: The array whose polarization
            components will be computed.
            Must have shape ``(3,)+k_shape``, where ``k_shape`` is the shape of a
            single momentum-space field array.

        :returns: The :class:`pyopencl.Event` associated with the kernel invocation.
        
Projects the components of a vector field onto the basis of plus and
minus polarizations.
Projects the components of a vector field onto the basis of plus and minus polarizations .
def vec_to_pol(self, queue, plus, minus, vector):
        evt, _ = self.vec_to_pol_knl(queue, **self.eff_mom,
                                     vector=vector, plus=plus, minus=minus)
        return evt
def vec_to_pol ( self , queue , plus , minus , vector ) : evt , _ = self . vec_to_pol_knl ( queue , ** self . eff_mom , vector = vector , plus = plus , minus = minus ) return evt
Projects the components of a vector field onto the basis of plus and
minus polarizations.
Projects the components of a vector field onto the basis of plus and minus polarizations .
"""
        Projects the components of a vector field onto the basis of plus and
        minus polarizations.

        :arg queue: A :class:`pyopencl.CommandQueue`.

        :arg plus: The array into which will be stored the
            momentum-space field of the plus polarization.

        :arg minus: The array into which will be stored the
            momentum-space field of the minus polarization.

        :arg vector: The array whose polarization
            components will be computed.
            Must have shape ``(3,)+k_shape``, where ``k_shape`` is the shape of a
            single momentum-space field array.

        :returns: The :class:`pyopencl.Event` associated with the kernel invocation.
        """
The :class:`pyopencl.Event` associated with the kernel invocation.
The : class : ` pyopencl . Event ` associated with the kernel invocation .
self
queue
None
plus
The array into which will be stored the
momentum-space field of the plus polarization.
The array into which will be stored the momentum - space field of the plus polarization .
minus
The array into which will be stored the
momentum-space field of the minus polarization.
The array into which will be stored the momentum - space field of the minus polarization .
vector
The array whose polarization
components will be computed.
Must have shape ``(3,)+k_shape``, where ``k_shape`` is the shape of a
single momentum-space field array.
The array whose polarization components will be computed . Must have shape ` ` ( 3 ) + k_shape ` ` where ` ` k_shape ` ` is the shape of a single momentum - space field array .