| 71 | |
| 72 | template<class View, bool Perm> |
| 73 | inline void |
| 74 | sort_tau(ViewArray<View>& x, ViewArray<View>& z, int tau[]) { |
| 75 | if (Perm) { |
| 76 | TupleMaxIncExt<View> ltmax(x,z); |
| 77 | Support::quicksort(&(*tau), x.size(), ltmax); |
| 78 | } else { |
| 79 | TupleMaxInc<View> ltmax(x); |
| 80 | Support::quicksort(&(*tau), x.size(), ltmax); |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * \brief Performing normalization on the views in \a y |