nag_sparse_real_rect_sort (f11zcc) Example Program Results Elements of B NNZ = 7 B BROW BCOL 0 4.0000e+00 3 1 1 1.0000e+00 1 2 2 -1.0000e+00 2 4 3 0.0000e+00 1 4 4 2.0000e+00 1 1 5 1.0000e+00 2 3 6 1.0000e+00 3 3 Elements of C NNZ = 5 C CROW CCOL 0 2.0000e+00 3 4 1 4.0000e+00 1 1 2 2.0000e+00 1 3 3 -1.0000e+00 2 2 4 1.0000e+00 2 4 Summed and reordered elements of A = B + C, along columns first NNZ = 8 A IROW ICOL 0 6.0000e+00 1 1 1 4.0000e+00 3 1 2 1.0000e+00 1 2 3 -1.0000e+00 2 2 4 2.0000e+00 1 3 5 1.0000e+00 2 3 6 1.0000e+00 3 3 7 2.0000e+00 3 4 Same matrix in CCS format NNZ = 8 A IROW ISTC 0 6.0000e+00 1 1 1 4.0000e+00 3 3 2 1.0000e+00 1 5 3 -1.0000e+00 2 8 4 2.0000e+00 1 9 5 1.0000e+00 2 6 1.0000e+00 3 7 2.0000e+00 3 Same matrix with some rows put out of order NNZ = 8 A IROW ISTC 0 4.0000e+00 3 1 1 6.0000e+00 1 3 2 1.0000e+00 1 5 3 -1.0000e+00 2 8 4 1.0000e+00 3 9 5 1.0000e+00 2 6 2.0000e+00 1 7 2.0000e+00 3 Rows reordered and matrix converted from CCS to CS format NNZ = 8 A IROW ICOL 0 6.0000e+00 1 1 1 4.0000e+00 3 1 2 1.0000e+00 1 2 3 -1.0000e+00 2 2 4 2.0000e+00 1 3 5 1.0000e+00 2 3 6 1.0000e+00 3 3 7 2.0000e+00 3 4 Transpose of this matrix passed to get row-major order NNZ = 8 A IROW ICOL 0 6.0000e+00 1 1 1 1.0000e+00 1 2 2 2.0000e+00 1 3 3 -1.0000e+00 2 2 4 1.0000e+00 2 3 5 4.0000e+00 3 1 6 1.0000e+00 3 3 7 2.0000e+00 3 4