Simplex
class¶Initializes Simplex
from the given sequence seq and
optionally real value data, e.g.:
s = Simplex([1,2,3], 7.8)
Iterator over the boundary of the simplex, e.g.:
for sb in s.boundary: print sb
True iff the simplex contains vertex v.
the dimension of the simplex (one less than its number of vertices).
Joins the current simplex with the other simplex. The method copies over the vertices from the other simplex.
Real value stored in the simplex.
(Sorted) vertices of the simplex accessible as a sequence, e.g.:
for v in s.vertices: print v,
The first function vertex_cmp()
is a Python interface to a C++ function.
The rest are pure Python functions defined in
bindings/python/dionysus/__init__.py
.
Compares the two simplices with respect to the lexicographic order of their vertices.
Compares the two simplices with respect to their dimension, and lexicographically within the same dimension.
Compares the two simplices with respect to the data (real values) they store.
Compares the two simplices with respect to their dimension and within the same dimension with respect to their data.