next up previous contents
Next: Example of Array Sorting Up: HPF Library Module Previous: Prefix and Suffix Functions

 

Array Sorting Functions

There are two functions in this class:

These can be used to sort multi-dimensional arrays as a whole (in array element order) or along (an optionally) specified dimension.

These functions do not perform `in-place' sorts but instead return a set of indices (a permutation of the original) which define the sorted array. Duplicate values remain in the original (array element) order.

The result is always a 2D array with the first row being all the x-coordinates, the second row being all the y-coordinates, the third row being all the z-coordinates and so on.




next up previous contents
Next: Example of Array Sorting Up: HPF Library Module Previous: Prefix and Suffix Functions

©University of Liverpool, 1997
Wed May 28 20:20:27 BST 1997
Not for commercial use.