*** empty log message ***
This commit is contained in:
6
vec.cc
6
vec.cc
@@ -494,10 +494,10 @@ NRVec< complex<double> >::operator|(const NRVec< complex<double> > &b) const
|
||||
|
||||
|
||||
template<typename T>
|
||||
int NRVec<T>::sort(int direction, int from, int to)
|
||||
int NRVec<T>::sort(int direction, int from, int to, int *perm)
|
||||
{
|
||||
copyonwrite();
|
||||
if(to == -1) to=nn-1;
|
||||
if(direction) return memqsort<1,NRVec<T>,int>(*this,from,to);
|
||||
else return memqsort<0,NRVec<T>,int>(*this,from,to);
|
||||
if(direction) return memqsort<1,NRVec<T>,int,int>(*this,perm,from,to);
|
||||
else return memqsort<0,NRVec<T>,int,int>(*this,perm,from,to);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user