| 63 | |
| 64 | template <int RTYPE, bool NA, typename T> |
| 65 | inline Vector<RTYPE> unique( const VectorBase<RTYPE,NA,T>& t ){ |
| 66 | Vector<RTYPE> vec(t) ; |
| 67 | sugar::IndexHash<RTYPE> hash(vec) ; |
| 68 | hash.fill() ; |
| 69 | return hash.keys() ; |
| 70 | } |
| 71 | template <int RTYPE, bool NA, typename T> |
| 72 | inline Vector<RTYPE> sort_unique( const VectorBase<RTYPE,NA,T>& t , bool decreasing = false){ |
| 73 | return unique<RTYPE,NA,T>( t ).sort(decreasing) ; |
no test coverage detected