#17570: ToricRationalDivisorClass: Integer/Rational mixed up
-------------------------------------+-------------------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  defect             |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.5
      Component:  geometry           |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jeroen Demeyer     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/jdemeyer/ticket/17570            |  b2c68ca56a6235b049c260c0cf181a252935037c
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by jdemeyer):

 So, what you really want is a free `ZZ`-module generated by vectors which
 might have coefficients in `QQ`, is that right?

 That's actually legal:
 {{{
 sage: M = (ZZ^2).span([(1,1/3),(0,1/2)])
 sage: M
 Free module of degree 2 and rank 2 over Integer Ring
 Echelon basis matrix:
 [  1 1/3]
 [  0 1/2]
 sage: M.base_ring()
 Integer Ring
 sage: type(M.basis()[0])
 <type 'sage.modules.vector_rational_dense.Vector_rational_dense'>
 }}}

 So the problem might be solvable by deriving from
 {{{
 sage: type(M)
 <class 'sage.modules.free_module.FreeModule_submodule_pid_with_category'>
 }}}
 instead of `FreeModule_generic_pid`.

--
Ticket URL: <http://trac.sagemath.org/ticket/17570#comment:6>
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.

Reply via email to