コード例 #1
0
def RingHomset(R, S, category=None):
    """
    Construct a space of homomorphisms between the rings ``R`` and ``S``.

    For more on homsets, see :func:`Hom()`.

    EXAMPLES::

        sage: Hom(ZZ, QQ) # indirect doctest
        Set of Homomorphisms from Integer Ring to Rational Field

    """
    if quotient_ring.is_QuotientRing(R):
        return RingHomset_quo_ring(R, S, category=category)
    return RingHomset_generic(R, S, category=category)
コード例 #2
0
ファイル: homset.py プロジェクト: amitjamadagni/sage
def RingHomset(R, S, category = None):
    """
    Construct a space of homomorphisms between the rings ``R`` and ``S``.

    For more on homsets, see :func:`Hom()`.

    EXAMPLES::

        sage: Hom(ZZ, QQ) # indirect doctest
        Set of Homomorphisms from Integer Ring to Rational Field

    """
    if quotient_ring.is_QuotientRing(R):
        return RingHomset_quo_ring(R, S, category = category)
    return RingHomset_generic(R, S, category = category)
コード例 #3
0
ファイル: homset.py プロジェクト: dagss/sage
def RingHomset(R, S, category = None):
    if quotient_ring.is_QuotientRing(R):
        return RingHomset_quo_ring(R, S, category = category)
    return RingHomset_generic(R, S, category = category)
コード例 #4
0
ファイル: homset.py プロジェクト: thalespaiva/sagelib
def RingHomset(R, S, category=None):
    if quotient_ring.is_QuotientRing(R):
        return RingHomset_quo_ring(R, S, category=category)
    return RingHomset_generic(R, S, category=category)