Skip to content

Polyhedron._acted_upon_ should handle left multiplication by matrices, linear transformations #28724

@mkoeppe

Description

@mkoeppe
sage: b3 = polytopes.Birkhoff_polytope(3)
sage: b3.ambient_dim()
9
sage: proj_mat=matrix([[0,1,0,0,0,0,0,0,0],[0,0,0,1,0,0,0,0,0],[0,0,0,0,0,1,0,0,0],[0,0,0,0,0,0,0,1,0]])
b3_proj = proj_mat * b3
Traceback (most recent call last)
.....
.... sage/geometry/polyhedron/base.pyc in _acted_upon_(self, actor, self_on_left)
   3687             return self.translation(actor)
   3688         else:
-> 3689             return self.dilation(actor)
   3690 
   3691     def __neg__(self):
.....
ValueError: V-representation data requires a list of length ambient_dim

Depends on #28770

CC: @jplab @jiawei-wang-ucd

Component: geometry

Keywords: polytopes

Author: Jean-Philippe Labbé, Jonathan Kliem

Branch/Commit: a1072ee

Reviewer: Jonathan Kliem, Jean-Philippe Labbé

Issue created by migration from https://trac.sagemath.org/ticket/28724

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions