Changeset 128


Ignore:
Timestamp:
Aug 5, 2004, 5:56:14 PM (17 years ago)
Author:
Peter
Message:

modified istream constructor to ignore empty lines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/matrix.cc

    r111 r128  
    6262        }
    6363        double t=atof(tmp_string.c_str());
    64         // Here we should check that it actually was a double!!!!!
     64        // Peter, should check that it actually was a double!!!!!
    6565        v.push_back(t);
    6666      }
     67   
     68      // Ignoring empty lines
     69      if(!v.size()){
     70        nof_rows--;
     71        continue;
     72      }
     73     
    6774      if(nof_columns==0)
    6875        nof_columns=v.size();
Note: See TracChangeset for help on using the changeset viewer.