Note: before using this routine, please read the Users' Note for your implementation to check the interpretation of bold italicised terms and other implementation-dependent details.
F06EVF (DGTHRZ) gathers specified (usually nonzero) elements of a real vector in full storage form into a sparse real vector in compressed form. The specified elements of are set to zero.
The routine may be called by its
BLAS
name dgthrz.
3 Description
F06EVF (DGTHRZ) gathers the specified elements of a vector, , in full storage form, into the equivalent sparse vector compressed form. The gathered elements of are set to zero.
4 References
Dodson D S, Grimes R G and Lewis J G (1991) Sparse extensions to the Fortran basic linear algebra subprograms ACM Trans. Math. Software17 253–263
5 Parameters
1: – INTEGERInput
On entry: the number of nonzeros in the compressed sparse vector .
2: – REAL (KIND=nag_wp) arrayInput/Output
Note: the dimension of the array Y
must be at least
.
On entry: the vector . Only elements corresponding to indices in INDX are accessed.
On exit: the elements of corresponding to indices in INDX are set to zero.
3: – REAL (KIND=nag_wp) arrayOutput
Note: the dimension of the array X
must be at least
.
On exit: the compressed vector .
4: – INTEGER arrayInput
Note: the dimension of the array INDX
must be at least
.
On entry: must contain the index , for , which is to be gathered into .