{S,D,C,Z}SCTR ( nz, x, indx, y )
nz integer*4 On entry, the number of elements to be scattered from the compressed form. On exit, nz is unchanged. x real*4 | real*8 | complex*8 | complex*16 On entry, an array of the elements of vector x to be scattered from compressed form into full form. On exit, x is unchanged. indx integer*4 On entry, an array containing the indices of the values to be scattered from the compressed form. The values in the INDX array must be distinct for consistent vector or parallel execution. On exit, indx is unchanged. y real*4 | real*8 | complex*8 | complex*16 On entry, an array that receives the elements of vector x. On exit, if nz <= 0, y is unchanged. If nz > 0, the elements in the vector y corresponding to the indices in the INDX array are set to the corresponding elements in vector x.
The _SCTR routines scatter the elements stored in the sparse vector x in compressed form into the specified elements of the vector y in full form. For i = 1, ..., nz: y (indx(i)) = x(i) If nz <= 0, y is unchanged. SSCTR and DSCTR scatter the elements of a real sparse vector stored in compressed form into the specified elements of a real vector in full form. CSCTR and ZSCTR scatter the elements of a complex sparse vector stored in compressed form into the specified elements of a complex vector in full form.
INTEGER NZ, INDX(10) REAL*4 Y(40), X(10) NZ = 10 CALL SSCTR(NZ, X, INDX, Y) This FORTRAN code scatters the elements of a sparse vector x, stored in compressed form, into the specified elements of the vector y, stored in full form.