--- Begin Message ---
Jean-Claude Wippler wrote:
Ah, ignore my previous radix sort nonesense then.
To give an example - to sort on col 2, 4 reverse, and then 3 could be
done using something like this:
m2 = sortmap(col[2])
m3 = sortmap(col[3])
m4 = sortmap(col[4])
result = view.remap(m3.remap(reverse(m4)).remap(m2))
(with partial use, i.e. when fetching only a slice of the result, all
sorts of neat tricks can be added, leading to behavior which I think
resembles what you are describing above)
Except that the above "permutation stacking" is not exactly right...
alas.
It can't be can it? You should only remap m2 with m3 when m2 has
equivalent values. You need a bucketing remap.
view3.bucketremap(view2)
-> remap the indices of view2 with the indices of view3 for equivalent
values of m2.
-jcw
_____________________________________________
Metakit mailing list - [EMAIL PROTECTED]
http://www.equi4.com/mailman/listinfo/metakit
--- End Message ---
_____________________________________________
Metakit mailing list - [EMAIL PROTECTED]
http://www.equi4.com/mailman/listinfo/metakit