From 6eb9bca773a8cd18e6128f11f2da1919cb2f097a Mon Sep 17 00:00:00 2001 From: Marcus Cuda Date: Tue, 29 Jan 2013 15:00:51 +0200 Subject: [PATCH] fixed bug in sparse matrix parsing --- src/Numerics.IO/LinearAlgebra/IO/Matlab/MatlabParser.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Numerics.IO/LinearAlgebra/IO/Matlab/MatlabParser.cs b/src/Numerics.IO/LinearAlgebra/IO/Matlab/MatlabParser.cs index 69c31f5e..4485d710 100644 --- a/src/Numerics.IO/LinearAlgebra/IO/Matlab/MatlabParser.cs +++ b/src/Numerics.IO/LinearAlgebra/IO/Matlab/MatlabParser.cs @@ -412,7 +412,8 @@ namespace MathNet.Numerics.LinearAlgebra.IO.Matlab for (var i = 0; i < ir.Count; i++) { var row = ir[i]; - if (jc[col + 1] == i) + // if (jc[col + 1] == i) + while(jc[col + 1] == i) { col++; }