pystella/fourier/projectors.py
def pol_to_tensor(self, queue, plus, minus, hij):
        """
        Projects the plus and minus polarizations of a rank-2 tensor field onto its
        tensor components.

        :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 hij: The array containing the
            momentum-space tensor field to be projected.
            Must have shape ``(6,)+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.

        .. versionadded:: 2020.1
        """

        evt, _ = self.pol_to_tensor_knl(queue, **self.eff_mom,
                                        hij=hij, plus=plus, minus=minus)
        return evt

        Projects the plus and minus polarizations of a rank-2 tensor field onto its
        tensor components.

        :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 hij: The array containing the
            momentum-space tensor field to be projected.
            Must have shape ``(6,)+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.

        .. versionadded:: 2020.1
        
Projects the plus and minus polarizations of a rank-2 tensor field onto its
tensor components.
Projects the plus and minus polarizations of a rank - 2 tensor field onto its tensor components .
def pol_to_tensor(self, queue, plus, minus, hij):
        evt, _ = self.pol_to_tensor_knl(queue, **self.eff_mom,
                                        hij=hij, plus=plus, minus=minus)
        return evt
def pol_to_tensor ( self , queue , plus , minus , hij ) : evt , _ = self . pol_to_tensor_knl ( queue , ** self . eff_mom , hij = hij , plus = plus , minus = minus ) return evt
Projects the plus and minus polarizations of a rank-2 tensor field onto its
tensor components.
Projects the plus and minus polarizations of a rank - 2 tensor field onto its tensor components .
"""
        Projects the plus and minus polarizations of a rank-2 tensor field onto its
        tensor components.

        :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 hij: The array containing the
            momentum-space tensor field to be projected.
            Must have shape ``(6,)+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.

        .. versionadded:: 2020.1
        """
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 .
hij
The array containing the
momentum-space tensor field to be projected.
Must have shape ``(6,)+k_shape``, where
``k_shape`` is the shape of a single momentum-space field array.
The array containing the momentum - space tensor field to be projected . Must have shape ` ` ( 6 ) + k_shape ` ` where ` ` k_shape ` ` is the shape of a single momentum - space field array .