class documentation
class Vector:
Represent a vector in a multidimensional space.
| Method | __add__ |
Return sum of two vectors. |
| Method | __eq__ |
Return True if vector has same coordinates as other. |
| Method | __getitem__ |
Return jth coordinate of vector. |
| Method | __init__ |
Undocumented |
| Method | __le__ |
Compare vectors based on lexicographical order. |
| Method | __len__ |
Return the dimension of the vector. |
| Method | __lt__ |
Compare vectors based on lexicographical order. |
| Method | __ne__ |
Return True if vector differs from other. |
| Method | __neg__ |
Return copy of vector with all coordinates negated. |
| Method | __setitem__ |
Set jth coordinate of vector to given value. |
| Method | __str__ |
Produce string representation of vector. |
| Instance Variable | _coords |
Undocumented |