Ignore:
Timestamp:
Mar 12, 2007, 11:53:38 PM (16 years ago)
Author:
Jari Häkkinen
Message:

Fixes #191. This is the best that can be done with the current design.

File:
1 edited

Legend:

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

    r759 r797  
    5858  {
    5959    for (unsigned int i=0; i<mv_rows_.size(); i++) {
    60       std::vector<std::pair<u_int,double> > distance=
    61         calculate_distances(mv_rows_[i]);
     60      std::vector<std::pair<u_int,double> >
     61        distance(calculate_distances(mv_rows_[i]));
    6262      std::sort(distance.begin(),distance.end(),
    6363                pair_value_compare<u_int,double>());
Note: See TracChangeset for help on using the changeset viewer.