NAG Library Manual, Mark 28.6
Interfaces:  FL   CL   CPP   AD 

NAG CL Interface Introduction
Example description

nag_sparse_complex_gen_sort (f11znc) Example Program Results

Original elements
 n   =    5
 nnz =   15
        i             a                  irow     icol
        0 (   4.0000e+00,    1.0000e+00)        3        1
        1 (  -2.0000e+00,    6.0000e+00)        5        2
        2 (   1.0000e+00,   -3.0000e+00)        4        4
        3 (  -2.0000e+00,   -1.0000e+00)        4        2
        4 (  -3.0000e+00,    0.0000e+00)        5        5
        5 (   1.0000e+00,    2.0000e+00)        1        2
        6 (   0.0000e+00,    0.0000e+00)        1        5
        7 (   1.0000e+00,    3.0000e+00)        3        5
        8 (  -1.0000e+00,   -1.0000e+00)        2        4
        9 (   6.0000e+00,   -3.0000e+00)        5        5
       10 (   2.0000e+00,    6.0000e+00)        1        1
       11 (   2.0000e+00,    1.0000e+00)        4        2
       12 (   1.0000e+00,    0.0000e+00)        2        3
       13 (   0.0000e+00,   -3.0000e+00)        3        3
       14 (   2.0000e+00,    2.0000e+00)        4        5

Reordered elements
 nnz =   11
        i             a                  irow     icol
        0 (   2.0000e+00,    6.0000e+00)        1        1
        1 (   1.0000e+00,    2.0000e+00)        1        2
        2 (   1.0000e+00,    0.0000e+00)        2        3
        3 (  -1.0000e+00,   -1.0000e+00)        2        4
        4 (   4.0000e+00,    1.0000e+00)        3        1
        5 (   0.0000e+00,   -3.0000e+00)        3        3
        6 (   1.0000e+00,    3.0000e+00)        3        5
        7 (   1.0000e+00,   -3.0000e+00)        4        4
        8 (   2.0000e+00,    2.0000e+00)        4        5
        9 (  -2.0000e+00,    6.0000e+00)        5        2
       10 (   3.0000e+00,   -3.0000e+00)        5        5