Ignore:
Timestamp:
Sep 21, 2008, 6:35:39 AM (13 years ago)
Author:
Peter
Message:

speeding up QuantileNormalizer? by avoiding some copying and by only sorting each column once and not twice as before.

File:
1 edited

Legend:

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

    r1487 r1519  
    182182      throw utility::GSL_error(std::string("sort_index(vector&,const VectorBase&)",status));     
    183183    }
    184     sort_index=std::vector<size_t>(p->data,p->data+p->size);
     184    std::vector<size_t> tmp(p->data,p->data+p->size);
     185    sort_index.swap(tmp);
    185186    gsl_permutation_free(p);
    186187  }
Note: See TracChangeset for help on using the changeset viewer.