#8264: swap_row does not work on modular matrices
------------------------------+---------------------------------------------
   Reporter:  janwil123       |       Owner:  was
       Type:  defect          |      Status:  new
   Priority:  major           |   Milestone:     
  Component:  linear algebra  |    Keywords:     
     Author:                  |    Upstream:  N/A
   Reviewer:                  |      Merged:     
Work_issues:                  |  
------------------------------+---------------------------------------------
 For some reason, swap_row does not work if the elements of the matrix are
 treated as integers modulo something. The code to reproduce the bug is the
 following:


 {{{
 A = matrix(ZZ, 2,[1,2,3,4])
 B = copy(A)
 B.swap_rows(0,1)
 print B,'\n'
 B.swap_columns(0,1) # So far so good
 print B,'\n'
 C = A.apply_map(lambda x:mod(x,8))
 C.swap_rows(0,1) # This line does not work
 print C,'\n'
 C.swap_columns(0,1) # But this one does
 print C
 }}}

 The bug reproduces every time on Mac OSX 10.6, SAGE version 4.3.1.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8264>
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