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

NAG FL Interface Introduction
Example description

 F11ZCF Example Program Results

 Elements of B
 NNZ =    7
                        B    BROW    BCOL
        1      4.0000E+00       3       1
        2      1.0000E+00       1       2
        3     -1.0000E+00       2       4
        4      0.0000E+00       1       4
        5      2.0000E+00       1       1
        6      1.0000E+00       2       3
        7      1.0000E+00       3       3

 Elements of C
 NNZ =    5
                        C    CROW    CCOL
        1      2.0000E+00       3       4
        2      4.0000E+00       1       1
        3      2.0000E+00       1       3
        4     -1.0000E+00       2       2
        5      1.0000E+00       2       4

 Summed and reordered elements of A = B + C, along columns first
 NNZ =    8
                        A    IROW    ICOL
        1      6.0000E+00       1       1
        2      4.0000E+00       3       1
        3      1.0000E+00       1       2
        4     -1.0000E+00       2       2
        5      2.0000E+00       1       3
        6      1.0000E+00       2       3
        7      1.0000E+00       3       3
        8      2.0000E+00       3       4

 Same matrix in CCS format
 NNZ =    8
                        A    IROW    ISTC
        1      6.0000E+00       1       1
        2      4.0000E+00       3       3
        3      1.0000E+00       1       5
        4     -1.0000E+00       2       8
        5      2.0000E+00       1       9
        6      1.0000E+00       2
        7      1.0000E+00       3
        8      2.0000E+00       3

 Same matrix with some rows put out of order
 NNZ =    8
                        A    IROW    ISTC
        1      4.0000E+00       3       1
        2      6.0000E+00       1       3
        3      1.0000E+00       1       5
        4     -1.0000E+00       2       8
        5      1.0000E+00       3       9
        6      1.0000E+00       2
        7      2.0000E+00       1
        8      2.0000E+00       3

 Rows reordered and matrix converted from CCS to CS format
 NNZ =    8
                        A    IROW    ICOL
        1      6.0000E+00       1       1
        2      4.0000E+00       3       1
        3      1.0000E+00       1       2
        4     -1.0000E+00       2       2
        5      2.0000E+00       1       3
        6      1.0000E+00       2       3
        7      1.0000E+00       3       3
        8      2.0000E+00       3       4

 Transpose of this matrix passed to get row-major order
 NNZ =    8
                        A    IROW    ICOL
        1      6.0000E+00       1       1
        2      1.0000E+00       1       2
        3      2.0000E+00       1       3
        4     -1.0000E+00       2       2
        5      1.0000E+00       2       3
        6      4.0000E+00       3       1
        7      1.0000E+00       3       3
        8      2.0000E+00       3       4