heswapr#

Functions

void cheswapr(
    const char*          uplo,
    const INT            n,
          c64*  restrict A,
    const INT            lda,
    const INT            i1,
    const INT            i2
);
void cheswapr(const char *uplo, const INT n, c64 *restrict A, const INT lda, const INT i1, const INT i2)#

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

Parameters

in
uplo

  • 'U': Upper triangular part of A is stored

  • 'L': Lower triangular part of A is stored

in
n

The order of the matrix A. n>=0.

inout
A

Single complex array of dimension (lda,n). On entry, the Hermitian matrix A. On exit, rows i1 and i2 and columns i1 and i2 are interchanged. The unused triangle is not referenced.

in
lda

The leading dimension of A. lda>=max(1,n).

in
i1

The 0-based index of the first row and column.

in
i2

The 0-based index of the second row and column.

Functions

void zheswapr(
    const char*          uplo,
    const INT            n,
          c128* restrict A,
    const INT            lda,
    const INT            i1,
    const INT            i2
);
void zheswapr(const char *uplo, const INT n, c128 *restrict A, const INT lda, const INT i1, const INT i2)#

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

Parameters

in
uplo

  • 'U': Upper triangular part of A is stored

  • 'L': Lower triangular part of A is stored

in
n

The order of the matrix A. n>=0.

inout
A

Double complex array of dimension (lda,n). On entry, the Hermitian matrix A. On exit, rows i1 and i2 and columns i1 and i2 are interchanged. The unused triangle is not referenced.

in
lda

The leading dimension of A. lda>=max(1,n).

in
i1

The 0-based index of the first row and column.

in
i2

The 0-based index of the second row and column.