This project has moved. For the latest updates, please go here.

SparseVector.OuterProduct has some bug

Sep 3, 2011 at 11:34 AM
Edited Sep 3, 2011 at 11:35 AM

hi. I tested SparseVector.OuterProduct() and found some bug.

For example, result of OuterProduct between two SparseVector [2, 2, 0, 0, 0], [2, 2, 0, 0, 0] is 

[4, 0, 0, 0]

[0, 4, 0, 0]

[0, 0, 0, 0]

[0, 0, 0, 0]

but true result is 

[4, 4, 0, 0]

[4, 4, 0, 0]

[0, 0, 0, 0]

[0, 0, 0, 0]

 

DenseVector.OuterProduct has no bug, it's works fine. This bug only occur with SparseVector.

(I tested Math.Net Numerics Beta 2)

Coordinator
Sep 7, 2011 at 8:35 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.