Changeset 1700 for trunk/yat/utility


Ignore:
Timestamp:
Jan 6, 2009, 9:05:16 PM (13 years ago)
Author:
Peter
Message:

reserve size in vector to avoid copying

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/Matrix.cc

    r1690 r1700  
    8383      data_matrix.resize(data_matrix.size()+1);
    8484      std::vector<double>& v=data_matrix.back();
     85      v.reserve(nof_columns);
    8586      std::string element;
    8687      std::stringstream ss(line);
Note: See TracChangeset for help on using the changeset viewer.