Skip to content

Commit 49f29a1

Browse files
committed
fix doctests
1 parent 9925b45 commit 49f29a1

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/sage/geometry/polyhedron/ppl_lattice_polytope.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -855,8 +855,8 @@ def base_projection_matrix(self, fiber):
855855
sage: poly = LatticePolytope_PPL((-9,-6,-1,-1),(0,0,0,1),(0,0,1,0),(0,1,0,0),(1,0,0,0))
856856
sage: fiber = next(poly.fibration_generator(2))
857857
sage: poly.base_projection_matrix(fiber)
858-
[0 0 1 0]
859-
[0 0 0 1]
858+
[ 0 0 -1 0]
859+
[ 0 0 0 -1]
860860
861861
Note that the basis choice in :meth:`base_projection` for the
862862
quotient is usually different::
@@ -866,7 +866,7 @@ def base_projection_matrix(self, fiber):
866866
sage: [ proj(p) for p in poly.integral_points() ]
867867
[(-1, -1), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 1), (1, 0)]
868868
sage: [ proj_matrix*p for p in poly.integral_points() ]
869-
[(-1, -1), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 1), (1, 0)]
869+
[(1, 1), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, -1), (-1, 0)]
870870
"""
871871
return matrix(ZZ, fiber.vertices()).right_kernel_matrix()
872872

src/sage/matrix/matrix2.pyx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4405,10 +4405,6 @@ cdef class Matrix(Matrix1):
44054405
Traceback (most recent call last):
44064406
...
44074407
ValueError: 'pari' matrix kernel algorithm only available over non-trivial number fields and the integers, not over Rational Field
4408-
sage: matrix(Integers(6), 2, 2).right_kernel_matrix(algorithm='generic')
4409-
Traceback (most recent call last):
4410-
...
4411-
NotImplementedError: Echelon form not implemented over 'Ring of integers modulo 6'.
44124408
sage: matrix(QQ, 2, 2).right_kernel_matrix(algorithm='pluq')
44134409
Traceback (most recent call last):
44144410
...

0 commit comments

Comments
 (0)