|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
ObjectQvsp
A Q-vector space--that is, a finite-dimensional vector space over the field Q of rational numbers.
The constructor returns Qn, where
n is the dimension. We imagine this space has the standard
basis {(1,0,...,0), (0,1,0,...,0), ...}. All QvspMorphisms are represented by matrices with respect to these
standard bases.
There is no special implementation of Object.equals(java.lang.Object).
The only interesting method is getDim(). After all,
in a category, the objects aren't interesting--all the interest
resides in the morphisms. :-)
| Field Summary | |
static Qvsp |
GROUNDFIELD
A rational vector space of dimension 1 and print name Q. |
static Qvsp |
ZERO
A standard zero object in this exact category. |
| Constructor Summary | |
Qvsp(int n)
Constructs a copy of Qn for n ≥ 0. |
|
| Method Summary | |
int |
getDim()
The dimension of this vector space. |
Morphism |
getIdMorphism()
Returns an identity morphism from this object to
itself. |
String |
getName()
Returns the name set by setName(java.lang.String), or null if none has
been set. |
ExactCategoryMorphism |
getZeroMorphism(ExactCategoryObj source)
Returns the zero morphism from source to
this. |
boolean |
isZero()
Whether this is a zero object. |
static Qvsp |
makeInstance(int n)
Constructs and returns a copy of Qn for n ≥ 0. |
void |
setName(String name)
Sets the name. |
String |
toString()
Returns the name, if one has been set by setName(java.lang.String), or
else returns a String like Q^17. |
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final Qvsp ZERO
0.
public static final Qvsp GROUNDFIELD
Q. We imagine it has the canonical basis {1}. In
the rare cases where we want one, a vector in a Qvsp V is specified by giving a QvspMorphism
from GROUNDFIELD to V.
| Constructor Detail |
public Qvsp(int n)
| Method Detail |
public static Qvsp makeInstance(int n)
ZERO.
public int getDim()
public final String getName()
setName(java.lang.String), or null if none has
been set. See toString().
public final void setName(String name)
toString().
public String toString()
setName(java.lang.String), or
else returns a String like Q^17.
public Morphism getIdMorphism()
Objthis object to
itself.
getIdMorphism in interface Objpublic boolean isZero()
ExactCategoryObjthis is a zero object.
isZero in interface ExactCategoryObjpublic ExactCategoryMorphism getZeroMorphism(ExactCategoryObj source)
ExactCategoryObjsource to
this.
getZeroMorphism in interface ExactCategoryObj
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||