Opened 17 years ago
Closed 17 years ago
#191 closed enhancement (fixed)
Avoid unnecessary vector copying in kNNI and WeNNI
Reported by: | Jari Häkkinen | Owned by: | Jari Häkkinen |
---|---|---|---|
Priority: | minor | Milestone: | yat 0.3 (Public release) |
Component: | utility | Version: | trunk |
Keywords: | Cc: |
Description
source:trunk/yat/utility/kNNI.cc at approximately line 60:
std::vector<std::pair<u_int,double> > distance= calculate_distances(mv_rows_[i]);
and source:trunk/yat/utility/WeNNI.cc at approximately line 55:
std::vector<std::pair<u_int,double> > distance=calculate_distances(i);
Note: See
TracTickets for help on using
tickets.
(In [797]) Fixes #191. This is the best that can be done with the current design.