#5032: dividing a sparse matrix by a scalar gives a dense matrix, but 
multiplying
gives a sparse one
----------------------------+-----------------------------------------------
 Reporter:  was             |       Owner:  was     
     Type:  defect          |      Status:  new     
 Priority:  major           |   Milestone:  sage-3.3
Component:  linear algebra  |    Keywords:          
----------------------------+-----------------------------------------------
 This is a bug:
 {{{
 sage: A = matrix(ZZ, 2, [1..4], sparse=True)
 sage: type(A*1)
 <type 'sage.matrix.matrix_integer_sparse.Matrix_integer_sparse'>
 sage: type(A/1)
 <type 'sage.matrix.matrix_rational_dense.Matrix_rational_dense'>
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5032>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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