#12544: Switch cones to `PointCollection`
--------------------------------------------------+-------------------------
Reporter: novoselt | Owner: mhampton
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-5.0
Component: geometry | Resolution:
Keywords: toric | Work issues: output
formatting
Report Upstream: N/A | Reviewers:
Authors: Andrey Novoseltsev | Merged in:
Dependencies: #11599, #11634, #12541, #12361 | Stopgaps:
--------------------------------------------------+-------------------------
Comment (by vbraun):
Replying to [comment:22 novoselt]:
> PALP, which is familiar to a number of people, does it as well as long
as the matrix fits the terminal. Then it switches to row vectors (the
switch, I think, is quite confusing).
Thats why PALP suddenly returns transposed matrices?? Is that anywhere
documented? I've observed this behavior but never figured out why PALP
does that. That is really a terrible design choice for a program so
technical that most people will want to parse its output.
> * I don't see what is the problem with having a function like
`sage.geometry.point_collection.default_representation` which allows you
switch between lists and matrices or anything else
The way I see it, the only difference between
{{{
sage.geometry.point_collection.default_representation = my_print_func
}}}
and
{{{
sage.geometry.cone.ConvexRationalPolyhedralCone._repr_ = my_print_func
}}}
is that I'll never discover the former, while the latter is the familiar
monkey-patching that you can do with any Python module. If you really want
to call it `default_representation` then I'm not totally opposed, but
nobody is going to use it because nobody is going to find out that its
there.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12544#comment:23>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.