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

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 18:56:08 GMT 1996
Not for commercial use.