Browse Source

Fix DoOuterProduct (bug in bounds of for loop)

pull/231/head
mjmckp 12 years ago
parent
commit
9b7bb7bb6f
  1. 2
      src/Numerics/LinearAlgebra/Vector.Arithmetic.cs

2
src/Numerics/LinearAlgebra/Vector.Arithmetic.cs

@ -125,7 +125,7 @@ namespace MathNet.Numerics.LinearAlgebra
protected void DoOuterProduct(Vector<T> other, Matrix<T> result)
{
var work = Build.Dense(Count);
for (var i = 0; i < Count; i++)
for (var i = 0; i < other.Count; i++)
{
DoMultiply(other.At(i), work);
result.SetColumn(i, work);

Loading…
Cancel
Save