(f, u, K)
return dmp_strip([ dmp_from_sympy(c, v, K) for c in f ], u)
Convert the ground domain of ``f`` from SymPy to ``K``.

    Examples
    ========

    >>> from sympy import S
    >>> from sympy.polys.domains import ZZ
    >>> from sympy.polys.densebasic import dmp_from_sympy

    >>> dmp_from_sympy([[S(1)], [S(2)]], 1, ZZ) == [[ZZ(1)], [ZZ(2)]]
    True
Convert the ground domain of ``f`` from SymPy to ``K``.
Convert the ground domain of f from SymPy to K .
def dmp_from_sympy(f, u, K):
    """
    Convert the ground domain of ``f`` from SymPy to ``K``.

    Examples
    ========

    >>> from sympy import S
    >>> from sympy.polys.domains import ZZ
    >>> from sympy.polys.densebasic import dmp_from_sympy

    >>> dmp_from_sympy([[S(1)], [S(2)]], 1, ZZ) == [[ZZ(1)], [ZZ(2)]]
    True

    """
    if not u:
        return dup_from_sympy(f, K)

    v = u - 1

    return dmp_strip([ dmp_from_sympy(c, v, K) for c in f ], u)
def dmp_from_sympy ( f , u , K ) : if not u : return dup_from_sympy ( f , K ) v = u - 1 return dmp_strip ( [ dmp_from_sympy ( c , v , K ) for c in f ] , u )