Changeset 439 for trunk/lib/gslapi/matrix.cc
- Timestamp:
- Dec 15, 2005, 1:46:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/gslapi/matrix.cc
r434 r439 56 56 std::string element; 57 57 std::stringstream ss(line); 58 58 59 bool ok=true; 59 60 while(ok) { … … 77 78 } 78 79 } 80 if(sep!='\0' && line[line.size()-1]==sep) // add NaN for final separator 81 v.push_back(std::numeric_limits<double>::quiet_NaN()); 79 82 if (!nof_columns) 80 83 nof_columns=v.size(); … … 82 85 std::ostringstream s; 83 86 s << "matrix::matrix(std::istream&, char) data file error: " 84 << "line" << nof_rows +1<< " has " << v.size()87 << "line" << nof_rows << " has " << v.size() 85 88 << " columns; expected " << nof_columns << " columns."; 86 89 throw utility::IO_error(s.str());
Note: See TracChangeset
for help on using the changeset viewer.