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);