cgthr - Gathers specified elements from y into x.
SUBROUTINE CGTHR(NZ, Y, X, INDX)
COMPLEX Y(*), X(*) INTEGER NZ INTEGER INDX(*)
SUBROUTINE CGTHR_64(NZ, Y, X, INDX)
COMPLEX Y(*), X(*) INTEGER*8 NZ INTEGER*8 INDX(*)
F95 INTERFACE SUBROUTINE GTHR([NZ], Y, X, INDX)
COMPLEX, DIMENSION(:) :: Y, X INTEGER :: NZ INTEGER, DIMENSION(:) :: INDX
SUBROUTINE GTHR_64([NZ], Y, X, INDX)
COMPLEX, DIMENSION(:) :: Y, X INTEGER(8) :: NZ INTEGER(8), DIMENSION(:) :: INDX
CGTHR - Gathers the specified elements from a vector y in full storage form into a vector x in compressed form. Only the elements of y whose indices are listed in indx are referenced.
do i = 1, n x(i) = y(indx(i)) enddo