NAG FL Interface
f06gvf (zgthrz)

Settings help

FL Name Style:


FL Specification Language:


1 Purpose

f06gvf gathers specified (usually nonzero) elements of a complex vector y in full storage form into a sparse complex vector x in compressed form. The specified elements of y are set to zero.

2 Specification

Fortran Interface
Subroutine f06gvf ( nz, y, x, indx)
Integer, Intent (In) :: nz, indx(*)
Complex (Kind=nag_wp), Intent (Inout) :: y(*), x(*)
C Header Interface
#include <nag.h>
void  f06gvf_ (const Integer *nz, Complex y[], Complex x[], const Integer indx[])
The routine may be called by the names f06gvf, nagf_blas_zgthrz or its BLAS name zgthrz.

3 Description

None.

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. Software 17 253–263

5 Arguments

1: nz Integer Input
On entry: the number of nonzeros in the sparse vector x.
2: y(*) Complex (Kind=nag_wp) array Input/Output
Note: the dimension of the array y must be at least maxk{indx(k)} .
On entry: the vector y. Only elements corresponding to indices in indx are accessed.
On exit: the elements of y corresponding to indices in indx are set to zero.
3: x(*) Complex (Kind=nag_wp) array Output
Note: the dimension of the array x must be at least max(1,nz).
On exit: the compressed vector x.
4: indx(*) Integer array Input
Note: the dimension of the array indx must be at least max(1,nz) .
On entry: indx must contain the set of indices J.

6 Error Indicators and Warnings

None.

7 Accuracy

Not applicable.

8 Parallelism and Performance

f06gvf is not threaded in any implementation.

9 Further Comments

None.

10 Example

None.