#9504: Add support for toric sublattices
----------------------------------+-----------------------------------------
Reporter: novoselt | Owner: mhampton
Type: enhancement | Status: needs_info
Priority: major | Milestone: sage-4.5.3
Component: geometry | Keywords:
Author: Andrey Novoseltsev | Upstream: N/A
Reviewer: Volker Braun | Merged:
Work_issues: |
----------------------------------+-----------------------------------------
Comment(by vbraun):
I've updated the reviewer patch accordingly. Now the coordinate vectors
work as expected:
{{{
sage: N = ToricLattice(3)
sage: Ns = N.submodule([N(1,1,1), N(1,2,3)])
sage: Q = N.quotient(Ns, positive_point=N(0,0,-1))
sage: Q.gen(0)
N[0, 0, -1]
sage: Q.gen(0).vector()
(1,)
sage: Q(0,0,-1)
N[0, 0, -1]
sage: Q(0,0,-1).vector()
(1,)
sage: q1 = Q(1,0,0)
sage: q1
N[1, 0, 0]
sage: q1.vector()
(-1,)
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9504#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.