| Home | Trees | Indices | Help |
|---|
|
|
Homsets
AUTHORS:
-- David Kohel and William Stein
-- David Joyner (2005-12-17): added examples
-- William Stein (2006-01-14): Changed from Homspace to Homset.
|
|||
|
Homset The class for collections of morphisms in a category. |
|||
| HomsetWithBase | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
_cache =
|
|||
|
|||
Create the space of homomorphisms from X to Y in the category cat.
INPUT:
X -- anything
Y -- anything
cat -- (optional) category in which the morphisms must be
OUTPUT:
a homset in cat
EXAMPLES:
sage: V = VectorSpace(QQ,3)
sage: Hom(V, V)
Set of Morphisms from Vector space of dimension 3 over Rational
Field to Vector space of dimension 3 over Rational Field in
Category of vector spaces over Rational Field
sage: G = SymmetricGroup(3)
sage: Hom(G, G)
Set of Morphisms from SymmetricGroup(3) to SymmetricGroup(3) in Category of groups
sage: Hom(ZZ, QQ, Sets())
Set of Morphisms from Integer Ring to Rational Field in Category of sets
|
Return Hom(X,Y)(f), where f is data that defines an element of Hom(X,Y).
EXAMPLES:
sage: R, x = PolynomialRing(QQ,'x').objgen()
sage: phi = hom(R, QQ, [2])
sage: phi(x^2 + 3)
7
|
Create the set of endomorphisms of X in the category cat.
INPUT:
X -- anything
cat -- (optional) category in which to coerce X
OUTPUT:
a set of endomorphisms in cat
EXAMPLES:
sage: V = VectorSpace(QQ, 3)
sage: End(V)
Set of Morphisms from Vector space of dimension 3 over Rational
Field to Vector space of dimension 3 over Rational Field in
Category of vector spaces over Rational Field
sage: G = SymmetricGroup(3)
sage: S = End(G); S
Set of Morphisms from SymmetricGroup(3) to SymmetricGroup(3) in Category of groups
sage: is_Endset(S)
True
sage: S.domain()
Symmetric group of order 3! as a permutation group
Homsets are \emph{not} objects in their category. They are
currently sets.
sage: S.category()
Category of sets
sage: S.domain().category()
Category of groups
|
Return End(X)(f), where f is data that defines an element of End(X).
EXAMPLES:
sage: R, x = PolynomialRing(QQ,'x').objgen()
sage: phi = end(R, [x + 1])
sage: phi
Ring endomorphism of Univariate Polynomial Ring in x over Rational Field
Defn: x |--> x + 1
sage: phi(x^2 + 5)
x^2 + 2*x + 6
|
|
|||
_cache
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0beta1 on Thu Jul 17 04:23:25 2008 | http://epydoc.sourceforge.net |