pystella/multigrid/transfer.py
def Injection(StencilKernel=ElementWiseMap, **kwargs):
    """
    Creates an injection kernel, which restricts in input array
    :math:`f^{(h)}` on the fine grid into an array :math:`f^{(2 h)}` on the
    coarse grid by direct injection:

    .. math::

        f^{(2 h)}_{i, j ,k}
        = f^{(h)}_{2 i, 2 j, 2 k}

    See :class:`transfer.RestrictionBase`.
    """

    coefs = {0: 1}
    return RestrictionBase(coefs, StencilKernel, **kwargs)

    Creates an injection kernel, which restricts in input array
    :math:`f^{(h)}` on the fine grid into an array :math:`f^{(2 h)}` on the
    coarse grid by direct injection:

    .. math::

        f^{(2 h)}_{i, j ,k}
        = f^{(h)}_{2 i, 2 j, 2 k}

    See :class:`transfer.RestrictionBase`.
    
Creates an injection kernel, which restricts in input array
Creates an injection kernel which restricts in input array
def Injection(StencilKernel=ElementWiseMap, **kwargs):
    coefs = {0: 1}
    return RestrictionBase(coefs, StencilKernel, **kwargs)
def Injection ( StencilKernel = ElementWiseMap , ** kwargs ) : coefs = { 0 : 1 } return RestrictionBase ( coefs , StencilKernel , ** kwargs )
Creates an injection kernel, which restricts in input array
Creates an injection kernel which restricts in input array
"""
    Creates an injection kernel, which restricts in input array
    :math:`f^{(h)}` on the fine grid into an array :math:`f^{(2 h)}` on the
    coarse grid by direct injection:

    .. math::

        f^{(2 h)}_{i, j ,k}
        = f^{(h)}_{2 i, 2 j, 2 k}

    See :class:`transfer.RestrictionBase`.
    """
StencilKernel
math
`f^{(h)}` on the fine grid into an array :math:`f^{(2 h)}` on the
coarse grid by direct injection.





See :class:`transfer.RestrictionBase`.
` f^ { ( h ) } ` on the fine grid into an array : math : ` f^ { ( 2 h ) } ` on the coarse grid by direct injection . See : class : ` transfer . RestrictionBase ` .