#8286: sparse_rows and sparse_columns are broken for 0xn, nx0 matrices
------------------------------+---------------------------------------------
   Reporter:  jhpalmieri      |       Owner:  was       
       Type:  defect          |      Status:  new       
   Priority:  major           |   Milestone:  sage-4.3.3
  Component:  linear algebra  |    Keywords:            
     Author:                  |    Upstream:  N/A       
   Reviewer:                  |      Merged:            
Work_issues:                  |  
------------------------------+---------------------------------------------
 {{{
 sage: mat = matrix(ZZ, 0, 1, sparse=True)
 sage: mat.nrows()
 0
 sage: mat.rows()
 [(0)]
 sage: mat = matrix(ZZ, 0, 1, sparse=False)
 sage: mat.nrows()
 0
 sage: mat.rows()
 []
 }}}
 The {{{rows}}} method should act the same regardless of the sparsity of
 the matrix, and when there are no rows, it should return an empty list.

 The same thing happens with matrices defined over QQ or GF(2), so I'm
 guessing that the problem is with {{{sparse_rows}}} and
 {{{sparse_columns}}} in sage/matrix/matrix1.pyx.

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