Commit 8bf2a0ae authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Fixed matrix reader to work with empty lines in MTX files.

parent 09af2ea2
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -271,7 +271,7 @@ bool MatrixReader< Matrix >::computeCompressedRowLengthsFromMtxFile( std::istrea
   timer.start();
   while( std::getline( file, line ) )
   {
      if( line[ 0 ] == '%' ) continue;
      if( ! line.getSize() || line[ 0 ] == '%' ) continue;
      if( ! dimensionsLine )
      {
         dimensionsLine = true;
@@ -343,7 +343,7 @@ bool MatrixReader< Matrix >::readMatrixElementsFromMtxFile( std::istream& file,

   while( std::getline( file, line ) )
   {
      if( line[ 0 ] == '%' ) continue;
      if( ! line.getSize() || line[ 0 ] == '%' ) continue;
      if( ! dimensionsLine )
      {
         dimensionsLine = true;