Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
centroid -> center; small correction
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed Mar 20, 2020
1 parent 948d992 commit b6898dd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/sage/geometry/polyhedron/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def gale_transform_to_polytope(vectors, base_ring=None, backend=None):
The order of the input vectors will not be preserved.
If the centroid of the (input) vectors is the origin,
If the center of the (input) vectors is the origin,
the function is much faster and might give a nicer representation
of the polytope.
Expand Down Expand Up @@ -294,7 +294,7 @@ def gale_transform_to_polytope(vectors, base_ring=None, backend=None):
If every hyperplane has at least one vector on each side, then the gale
transform corresponds to a point configuration.
It corresponds to a polytope if and only if this point configuration is
convex if and only if every hyperplane contains at least two vectors of
convex and if and only if every hyperplane contains at least two vectors of
the gale transform on each side.
If this is not the case, an error is raised::
Expand Down Expand Up @@ -349,14 +349,14 @@ def gale_transform_to_primal(vectors, base_ring=None, backend=None):
- ``backend`` -- string (default: `None`);
the backend to be use to construct a polyhedral,
used interally in case the centroid is not the origin,
used interally in case the center is not the origin,
see :func:`~sage.geometry.polyhedron.constructor.Polyhedron`
OUTPUT: An ordered point configuration as list of vectors.
.. NOTE::
If the centroid of the (input) vectors is the origin,
If the center of the (input) vectors is the origin,
the function is much faster and might give a nicer representation
of the point configuration.
Expand All @@ -365,7 +365,7 @@ def gale_transform_to_primal(vectors, base_ring=None, backend=None):
ALGORITHM:
Step 1: If the centroid of the (input) vectors is not the origin,
Step 1: If the center of the (input) vectors is not the origin,
we do an appropriate transformation to make it so.
Step 2: We add a row of ones on top of ``Matrix(vectors)``.
Expand All @@ -374,7 +374,7 @@ def gale_transform_to_primal(vectors, base_ring=None, backend=None):
More concretely, the dual vector configuration (inhomogeneous)
is obtained by taking a basis of the right kernel of ``Matrix(vectors)``.
If the centroid of the (input) vectors is the origin,
If the center of the (input) vectors is the origin,
there exists a basis of the right kernel of the form
``[[1], [V]]``, where ``[1]`` represents a row of ones.
Then, ``V`` is a dehomogenization and thus the dual point configuration.
Expand Down Expand Up @@ -462,7 +462,7 @@ def gale_transform_to_primal(vectors, base_ring=None, backend=None):
vectors = tuple(vector(x) for x in vectors)

if not sum(vectors).is_zero():
# The centroid of the input vectors shall be the origin.
# The center of the input vectors shall be the origin.
# If this is not the case, we scale them accordingly.
# This has the adventage that right kernel of ``vectors`` can be
# presented in the form ``[[1], [V]]``, where ``V`` are the points
Expand Down

0 comments on commit b6898dd

Please sign in to comment.