#9747: assigment to 1x1 submatrices specified by slices fails
---------------------------------+------------------------------------------
   Reporter:  phil               |       Owner:  jason, was                     
      
       Type:  defect             |      Status:  needs_review                   
      
   Priority:  major              |   Milestone:  sage-4.5.3                     
      
  Component:  linear algebra     |    Keywords:  matrix assignment slicing 
__setitem__
     Author:  Philipp Schneider  |    Upstream:  N/A                            
      
   Reviewer:                     |      Merged:                                 
      
Work_issues:                     |  
---------------------------------+------------------------------------------

Comment(by phil):

 I added another patch (including a doctest) which fixes the bug in the
 case that only the second index is a slice. The following example works
 only after the second patch is applied:

 == Example ==

 {{{
 sage: A=matrix([[1,2],[3,4]]); B=matrix([[1,3],[5,7]])
 sage: A[1,0:1]=B[1,1:2]
 sage: A
 [1 2]
 [7 4]

 }}}

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