Did I find the right examples for you? yes no

All Samples(204)  |  Call(187)  |  Derive(0)  |  Import(17)
The base class for any kind of object in an abstract category.

While technically any instance of :class:`Basic` will do, this
class is the recommended way to create abstract objects in
abstract categories.

src/s/y/sympy-0.7.5/sympy/categories/tests/test_drawing.py   sympy(Download)
from sympy.categories.diagram_drawing import _GrowableGrid, ArrowStringDescription
from sympy.categories import (DiagramGrid, Object, NamedMorphism,
                              Diagram, XypicDiagramDrawer, xypic_draw_diagram)
from sympy import FiniteSet
 
def test_DiagramGrid():
    # Set up some objects and morphisms.
    A = Object("A")
    B = Object("B")
    C = Object("C")
    D = Object("D")

src/s/y/sympy-HEAD/sympy/categories/tests/test_drawing.py   sympy(Download)
from sympy.categories.diagram_drawing import _GrowableGrid, ArrowStringDescription
from sympy.categories import (DiagramGrid, Object, NamedMorphism,
                              Diagram, XypicDiagramDrawer, xypic_draw_diagram)
from sympy import FiniteSet
 
def test_DiagramGrid():
    # Set up some objects and morphisms.
    A = Object("A")
    B = Object("B")
    C = Object("C")
    D = Object("D")

src/s/y/sympy-0.7.5/sympy/categories/tests/test_baseclasses.py   sympy(Download)
from sympy.categories import (Object, Morphism, IdentityMorphism,
                              NamedMorphism, CompositeMorphism,
                              Diagram, Category)
from sympy.categories.baseclasses import Class
from sympy.utilities.pytest import XFAIL, raises
from sympy import FiniteSet, EmptySet, Dict, Tuple
 
 
def test_morphisms():
    A = Object("A")
def test_morphisms():
    A = Object("A")
    B = Object("B")
    C = Object("C")
    D = Object("D")

src/s/y/sympy-HEAD/sympy/categories/tests/test_baseclasses.py   sympy(Download)
from sympy.categories import (Object, Morphism, IdentityMorphism,
                              NamedMorphism, CompositeMorphism,
                              Diagram, Category)
from sympy.categories.baseclasses import Class
from sympy.utilities.pytest import XFAIL, raises
from sympy import FiniteSet, EmptySet, Dict, Tuple
 
 
def test_morphisms():
    A = Object("A")
def test_morphisms():
    A = Object("A")
    B = Object("B")
    C = Object("C")
    D = Object("D")

src/s/y/sympy-HEAD/sympy/core/tests/test_args.py   sympy(Download)
def test_sympy__categories__baseclasses__Object():
    from sympy.categories import Object
    assert _test_args(Object("A"))
 
 
@XFAIL
def test_sympy__categories__baseclasses__Morphism():
    from sympy.categories import Object, Morphism
    assert _test_args(Morphism(Object("A"), Object("B")))

src/s/y/sympy-0.7.5/sympy/printing/tests/test_latex.py   sympy(Download)
def test_categories():
    from sympy.categories import (Object, IdentityMorphism,
        NamedMorphism, Category, Diagram, DiagramGrid)
 
    A1 = Object("A1")
    A2 = Object("A2")
    A3 = Object("A3")
 
    f1 = NamedMorphism(A1, A2, "f1")

src/s/y/sympy-HEAD/sympy/printing/tests/test_latex.py   sympy(Download)
def test_categories():
    from sympy.categories import (Object, IdentityMorphism,
        NamedMorphism, Category, Diagram, DiagramGrid)
 
    A1 = Object("A1")
    A2 = Object("A2")
    A3 = Object("A3")
 
    f1 = NamedMorphism(A1, A2, "f1")

src/s/y/sympy-0.7.5/sympy/printing/pretty/tests/test_pretty.py   sympy(Download)
def test_categories():
    from sympy.categories import (Object, IdentityMorphism,
        NamedMorphism, Category, Diagram, DiagramGrid)
 
    A1 = Object("A1")
    A2 = Object("A2")
    A3 = Object("A3")
 
    f1 = NamedMorphism(A1, A2, "f1")

src/s/y/sympy-HEAD/sympy/printing/pretty/tests/test_pretty.py   sympy(Download)
def test_categories():
    from sympy.categories import (Object, IdentityMorphism,
        NamedMorphism, Category, Diagram, DiagramGrid)
 
    A1 = Object("A1")
    A2 = Object("A2")
    A3 = Object("A3")
 
    f1 = NamedMorphism(A1, A2, "f1")

src/s/y/sympy-0.7.5/sympy/printing/tests/test_str.py   sympy(Download)
def test_categories():
    from sympy.categories import (Object, NamedMorphism,
        IdentityMorphism, Category)
 
    A = Object("A")
    B = Object("B")
 
    f = NamedMorphism(A, B, "f")

  1 | 2  Next