Skip to content
Snippets Groups Projects
Commit 8bb313a9 authored by Matthew Webster's avatar Matthew Webster
Browse files

No need for final getline

parent 31753c45
No related branches found
No related tags found
No related merge requests found
......@@ -132,9 +132,11 @@ namespace MISCMATHS {
throw Exception("Could not find enough numbers in matrix file");
}
mat(r,c) = newnum;
}
getline(fs,ss); // this is processed now, so move the stream past it
ss = skip_alpha(fs);
}
if ( r!=nrows ) {
getline(fs,ss); // this is processed now, so move the stream past it
ss = skip_alpha(fs);
}
}
mat.Release();
return mat;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment