next up previous contents
Next: Miscellaneous Up: HPF Intrinsics and Library Previous: Example of Array Sorting

 

Further Example of Array Sorting Functions

If A is the 2D array:

    1 9 2
    4 5 2
    1 2 4

Then GRADE_DOWN(A) is (the coordinates)

    1 2 2 3 3 1 2 1 3
    2 2 1 3 2 3 3 1 1

and GRADE_DOWN(A,DIM=1) is

    2 1 3
    1 2 1
    3 3 2

For more information, click here gif

Now try this question gif


next up previous contents
Next: Miscellaneous Up: HPF Intrinsics and Library Previous: Example of Array Sorting

©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997
Not for commercial use.