Hi all,

I am failing at understanding the difference between sorting a boxed
numeric vector and the unboxed vector :

   x
┌──┬─┬──┬──┬──┬─┬──┬─┬─┬─┬─┬─┬─┬─┬──┬──┬─┬──┬──┬──┐
│18│8│13│15│16│9│14│5│2│1│3│0│4│6│12│10│7│17│11│19│
└──┴─┴──┴──┴──┴─┴──┴─┴─┴─┴─┴─┴─┴─┴──┴──┴─┴──┴──┴──┘
   3!:0 each x  NB. Integer type
┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐
│4│4│4│4│4│4│4│4│4│4│4│4│4│4│4│4│4│4│4│4│
└─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘
   /:x
0 11 9 8 10 12 7 13 16 1 5 15 18 14 2 6 3 4 17 19
   /:>x
11 9 8 10 12 7 13 16 1 5 15 18 14 2 6 3 4 17 0 19

Anybody care to comment ?


Jimmy
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to