#5198: apply_map skips zeroes in sparse vectors and matrices
----------------------------+-----------------------------------------------
 Reporter:  cwitty          |       Owner:  was     
     Type:  defect          |      Status:  new     
 Priority:  blocker         |   Milestone:  sage-3.3
Component:  linear algebra  |    Keywords:          
----------------------------+-----------------------------------------------
 Consider:
 {{{
 sage: vector(ZZ, range(3)).apply_map(lambda x: x+1)
 (1, 2, 3)
 sage: vector(ZZ, range(3), sparse=True).apply_map(lambda x: x+1)
 (0, 2, 3)
 }}}

 and

 {{{
 sage: matrix(ZZ, range(3)).apply_map(lambda x: x+1)
 [1 2 3]
 sage: matrix(ZZ, range(3), sparse=True).apply_map(lambda x: x+1)
 [0 2 3]
 }}}

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