#13302: Matrix constructor does not return over padic field
--------------------------------+-------------------------------------------
       Reporter:  saraedum      |         Owner:  jason, was
           Type:  defect        |        Status:  needs_work
       Priority:  minor         |     Milestone:  sage-5.3  
      Component:  padics        |    Resolution:            
       Keywords:  matrix space  |   Work issues:            
Report Upstream:  N/A           |     Reviewers:            
        Authors:  Julian Rueth  |     Merged in:            
   Dependencies:                |      Stopgaps:            
--------------------------------+-------------------------------------------
Changes (by saraedum):

  * keywords:  matrix space, padics => matrix space
  * component:  linear algebra => padics


Old description:

> The following code does not return in sage 5.1.rc1.
>
> {{{
> sage: MatrixSpace(Qp(3),1,1)([Qp(3).zero()])
> }}}
>
> The problem is, that the matrix constructor tries to unpack a padic zero
> which is an infinite list of zeros.

New description:

 The following code does not return in sage 5.1.rc1.

 {{{
 sage: MatrixSpace(Qp(3),1,1)([Qp(3).zero()])
 }}}

 The problem is that the matrix constructor tries to unpack a padic zero
 which is an infinite list of zeros.

 Another example where the unpacking does not work is the following:
 {{{
 sage: MatrixSpace(Qp(3),1,1)([Qp(3)(4/3)])
 [1 + O(3^20)]
 }}}

 The problem here is that the iterator returned for a padic (implicitly
 defined through {{{__getitem__}}}) starts at the term with valuation 0.

--

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

Reply via email to