#5297: [with patch, needs review] sparse vectors and free module elements:
pairwise_product is broken
----------------------------+-----------------------------------------------
 Reporter:  jhpalmieri      |       Owner:  jhpalmieri
     Type:  defect          |      Status:  new       
 Priority:  critical        |   Milestone:  sage-3.4.1
Component:  linear algebra  |    Keywords:            
----------------------------+-----------------------------------------------
 {{{
 sage: v = vector({1: 1, 3: -2})
 sage: w = vector({3: 3})
 sage: v
 (0, 1, 0, -2)
 sage: w
 (0, 0, 0, 3)
 sage: v.pairwise_product(w)
 (0, 1, 0, -6)
 sage: v.dense_vector().pairwise_product(w)
 (0, 0, 0, -6)
 }}}
 (The last line illustrates that dense vectors seem to work okay.)

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