#19603: Quotient of incompatible lattices
------------------------+-----------------------------
Reporter: mjo | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.10
Component: geometry | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
------------------------+-----------------------------
The `quotient` method of toric lattices accepts a sublattice and should
check that the argument is in fact a sublattice. According to the
documentation,
{{{
INPUT:
* "sub" -- sublattice of self;
* "check" -- (default: True) whether or not to check that "sub"
is a valid sublattice.
}}}
However, it is possible to take the quotient of a lattice `N` with a
sublattice of `M` that is not compatible:
{{{
sage: K = Cone([(1,0,0),(0,1,0)])
sage: K.lattice()
3-d lattice N
sage: K.orthogonal_sublattice()
Sublattice <M(0, 0, 1)>
sage: K.lattice().quotient(K.orthogonal_sublattice())
2-d lattice, quotient of 3-d lattice N by Free module of degree 3 and rank
1 over Integer Ring
Echelon basis matrix:
[0 0 1]
}}}
This should raise an error instead.
--
Ticket URL: <http://trac.sagemath.org/ticket/19603>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.