From 9b7bb7bb6fd31499803b6dfdc49c41e3ff2c3c7f Mon Sep 17 00:00:00 2001 From: mjmckp Date: Tue, 15 Jul 2014 16:03:48 +1000 Subject: [PATCH] Fix DoOuterProduct (bug in bounds of for loop) --- src/Numerics/LinearAlgebra/Vector.Arithmetic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Numerics/LinearAlgebra/Vector.Arithmetic.cs b/src/Numerics/LinearAlgebra/Vector.Arithmetic.cs index 8cad6168..87d44e6a 100644 --- a/src/Numerics/LinearAlgebra/Vector.Arithmetic.cs +++ b/src/Numerics/LinearAlgebra/Vector.Arithmetic.cs @@ -125,7 +125,7 @@ namespace MathNet.Numerics.LinearAlgebra protected void DoOuterProduct(Vector other, Matrix 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);