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

Commit

Permalink
more consistent behaviour for empty matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed Jan 6, 2020
1 parent e80556c commit 1e68f1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/geometry/polyhedron/base.py
Expand Up @@ -4321,7 +4321,7 @@ def linear_transformation(self, linear_transf):
Check that zero-matrices act correctly::
sage: Matrix([]) * b3
The empty polyhedron in ZZ^0
A 0-dimensional polyhedron in ZZ^0 defined as the convex hull of 1 vertex
sage: Matrix([[0 for _ in range(9)]]) * b3
A 0-dimensional polyhedron in ZZ^1 defined as the convex hull of 1 vertex
sage: Matrix([[0 for _ in range(9)] for _ in range(4)]) * b3
Expand All @@ -4336,7 +4336,7 @@ def linear_transformation(self, linear_transf):
new_rays = [ list(linear_transf*r.vector()) for r in self.ray_generator() ]
new_lines = [ list(linear_transf*l.vector()) for l in self.line_generator() ]
else:
new_vertices = []
new_vertices = [[] for v in self.vertex_generator() ]
new_rays = []
new_lines = []

Expand Down

0 comments on commit 1e68f1e

Please sign in to comment.