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

Commit b6898dd

Browse files
author
Jonathan Kliem
committed
centroid -> center; small correction
1 parent 948d992 commit b6898dd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/sage/geometry/polyhedron/library.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def gale_transform_to_polytope(vectors, base_ring=None, backend=None):
215215
216216
The order of the input vectors will not be preserved.
217217
218-
If the centroid of the (input) vectors is the origin,
218+
If the center of the (input) vectors is the origin,
219219
the function is much faster and might give a nicer representation
220220
of the polytope.
221221
@@ -294,7 +294,7 @@ def gale_transform_to_polytope(vectors, base_ring=None, backend=None):
294294
If every hyperplane has at least one vector on each side, then the gale
295295
transform corresponds to a point configuration.
296296
It corresponds to a polytope if and only if this point configuration is
297-
convex if and only if every hyperplane contains at least two vectors of
297+
convex and if and only if every hyperplane contains at least two vectors of
298298
the gale transform on each side.
299299
300300
If this is not the case, an error is raised::
@@ -349,14 +349,14 @@ def gale_transform_to_primal(vectors, base_ring=None, backend=None):
349349
350350
- ``backend`` -- string (default: `None`);
351351
the backend to be use to construct a polyhedral,
352-
used interally in case the centroid is not the origin,
352+
used interally in case the center is not the origin,
353353
see :func:`~sage.geometry.polyhedron.constructor.Polyhedron`
354354
355355
OUTPUT: An ordered point configuration as list of vectors.
356356
357357
.. NOTE::
358358
359-
If the centroid of the (input) vectors is the origin,
359+
If the center of the (input) vectors is the origin,
360360
the function is much faster and might give a nicer representation
361361
of the point configuration.
362362
@@ -365,7 +365,7 @@ def gale_transform_to_primal(vectors, base_ring=None, backend=None):
365365
366366
ALGORITHM:
367367
368-
Step 1: If the centroid of the (input) vectors is not the origin,
368+
Step 1: If the center of the (input) vectors is not the origin,
369369
we do an appropriate transformation to make it so.
370370
371371
Step 2: We add a row of ones on top of ``Matrix(vectors)``.
@@ -374,7 +374,7 @@ def gale_transform_to_primal(vectors, base_ring=None, backend=None):
374374
375375
More concretely, the dual vector configuration (inhomogeneous)
376376
is obtained by taking a basis of the right kernel of ``Matrix(vectors)``.
377-
If the centroid of the (input) vectors is the origin,
377+
If the center of the (input) vectors is the origin,
378378
there exists a basis of the right kernel of the form
379379
``[[1], [V]]``, where ``[1]`` represents a row of ones.
380380
Then, ``V`` is a dehomogenization and thus the dual point configuration.
@@ -462,7 +462,7 @@ def gale_transform_to_primal(vectors, base_ring=None, backend=None):
462462
vectors = tuple(vector(x) for x in vectors)
463463

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

0 commit comments

Comments
 (0)