Commits

Mathieu Lajoie committed 8cf5b6d Merge

small bug fix (no effect on web results)

Comments (0)

Files changed (2)

README.txt

File contents unchanged.
 void get_ranks_ties(const Double1D& val_vec, Double1D& r_vec){
   int vec_size = val_vec.size();
   r_vec.resize(vec_size);
-  static RankedDouble1D rank_vec(vec_size);
- 
+  static RankedDouble1D rank_vec(0);
+  rank_vec.clear();
+  rank_vec.resize(vec_size);
+
   for(int i=0;i<vec_size;i++){
     rank_vec[i].index=i;
     rank_vec[i].value=val_vec[i];