#12544: Switch cones to `PointCollection`
--------------------------------------------------+-------------------------
Reporter: novoselt | Owner: mhampton
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.0
Component: geometry | Resolution:
Keywords: toric | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Andrey Novoseltsev | Merged in:
Dependencies: #11599, #11634, #12541, #12361 | Stopgaps:
--------------------------------------------------+-------------------------
Comment (by novoselt):
Hmmm... I actually find the current notation not very readable beyond 2-3
rays, certainly not when the output does not fit one line and for like 20
rays in 3 or 4 dimensions I definitely prefer a horizontal matrix in the
notebook. For small ones it seems then to be more convenient to be the
same and if we are talking about hundreds of rays there is probably no
convenient notation, although somehow aligned structure still seems to be
preferable.
Anyway, I think this is in a big part personal preference and one of the
points of point collections is ability of customisation. How about I'll
add some method that allows one to switch globally between ray-by-ray and
(optionally transposed) matrix representation?
The default can be ray-by-ray as it is now or perhaps organized in such a
way that each ray is on its own line and components are aligned in
columns, but still with all the parentheses and commas to make it copy-
pastable. Or it can be what I've done now, but as soon as you exceed 80
(or 60) characters it switches to ray list automatically. Those who don't
like the default can adjust it in the beginning of their worksheets ;-)
I'll also would like to keep in any case "in 3-d lattice N" or whatever on
the last line: I think this looks fine with "regular lattices" and is very
useful for more complicated ones such as sublattices, quotients, class
groups. So with proposed alignment it could look like
{{{
sage: cone.rays()
N(-3, 345, 1),
N( 1, 0, -8897)
in 3-d lattice N
}}}
What do you think?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12544#comment:18>
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.