MCPcopy Create free account
hub / github.com/Gecode/gecode / sort_tau

Function sort_tau

gecode/int/sorted/order.hpp:73–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

quicksortFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected