miscellaneous codes


  1. a c code to get the rank of all the element in an array using qsort
    here is the screenshot of the code
    $./arrayRank
      0.8402   0.3944   0.7831   0.7984   0.9116   0.1976   0.3352   0.7682   0.2778   0.5540 
           8        3        6        7        9        0        2        5        1        4 
    
  2. here is another version of c code to get the rank of all the elelemts in an array without using the qsort subroutine from stdlib.h
    here is the screenshot of the code
    $./myqsortrank
      0.8402   0.3944   0.7831   0.7984   0.9116   0.1976   0.3352   0.7682   0.2778   0.5540 
           8        3        6        7        9        0        2        5        1        4 
    

Zhen Xie
Argonne National Laboratory
[email protected]