?heswapr

Applies an elementary permutation on the rows and columns of a Hermitian matrix.

Syntax

FORTRAN 77:

call cheswapr( uplo, n, a, i1, i2 )

call zheswapr( uplo, n, a, i1, i2 )

FORTRAN 95:

call heswapr( a, i1, i2 [,uplo] )

Include Files

Description

The routine applies an elementary permutation on the rows and columns of a Hermitian matrix.

Input Parameters

uplo

CHARACTER*1. Must be 'U' or 'L'.

Indicates how the input matrix A has been factored:

If uplo = 'U', the array a stores the upper triangular factor U of the factorization A = U*D*UH.

If uplo = 'L', the array a stores the lower triangular factor L of the factorization A = L*D*LH.

n

INTEGER. The order of matrix A; n 0.

nrhs

INTEGER. The number of right-hand sides; nrhs 0.

a

COMPLEX for cheswapr

DOUBLE COMPLEX for zheswapr

Array of dimension (lda,n).

The array a contains the block diagonal matrix D and the multipliers used to obtain the factor U or L as computed by ?hetrf.

i1

INTEGER. Index of the first row to swap.

i2

INTEGER. Index of the second row to swap.

Output Parameters

a

If info = 0, the inverse of the original matrix.

If info = 'U', the upper triangular part of the inverse is formed and the part of A below the diagonal is not referenced.

If info = 'L', the lower triangular part of the inverse is formed and the part of A above the diagonal is not referenced.

Fortran 95 Interface Notes

Routines in Fortran 95 interface have fewer arguments in the calling sequence than their FORTRAN 77 counterparts. For general conventions applied to skip redundant or reconstructible arguments, see Fortran 95 Interface Conventions.

Specific details for the routine heswapr interface are as follows:

a

Holds the matrix A of size (n, n).

i1

Holds the index for swap.

i2

Holds the index for swap.

uplo

Must be 'U' or 'L'.

See Also


Submit feedback on this help topic