syswapr#

Functions

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

SSYSWAPR applies an elementary permutation on the rows and the columns of a symmetric matrix.

Parameters

in
uplo

Specifies whether the details of the factorization are stored as an upper or lower triangular matrix. = ‘U’: Upper triangular, form is A = U*D*U**T; = ‘L’: Lower triangular, form is A = L*D*L**T.

in
n

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

inout
A

Double precision array, dimension (lda, n). On entry, the N-by-N matrix A. On exit, the permuted matrix where the rows i1 and i2 and columns i1 and i2 are interchanged. If UPLO = ‘U’, the interchanges are applied to the upper triangular part and the strictly lower triangular part of A is not referenced; if UPLO = ‘L’, the interchanges are applied to the lower triangular part and the part of A above the diagonal is not referenced.

in
lda

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

in
i1

Index of the first row to swap (0-based).

in
i2

Index of the second row to swap (0-based).

Functions

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

DSYSWAPR applies an elementary permutation on the rows and the columns of a symmetric matrix.

Parameters

in
uplo

Specifies whether the details of the factorization are stored as an upper or lower triangular matrix. = ‘U’: Upper triangular, form is A = U*D*U**T; = ‘L’: Lower triangular, form is A = L*D*L**T.

in
n

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

inout
A

Double precision array, dimension (lda, n). On entry, the N-by-N matrix A. On exit, the permuted matrix where the rows i1 and i2 and columns i1 and i2 are interchanged. If UPLO = ‘U’, the interchanges are applied to the upper triangular part and the strictly lower triangular part of A is not referenced; if UPLO = ‘L’, the interchanges are applied to the lower triangular part and the part of A above the diagonal is not referenced.

in
lda

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

in
i1

Index of the first row to swap (0-based).

in
i2

Index of the second row to swap (0-based).

Functions

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

CSYSWAPR applies an elementary permutation on the rows and the columns of a symmetric matrix.

Parameters

in
uplo

Specifies whether the details of the factorization are stored as an upper or lower triangular matrix. = ‘U’: Upper triangular, form is A = U*D*U**T; = ‘L’: Lower triangular, form is A = L*D*L**T.

in
n

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

inout
A

Single complex array, dimension (lda, n). On entry, the N-by-N matrix A. On exit, the permuted matrix where the rows i1 and i2 and columns i1 and i2 are interchanged. If UPLO = ‘U’, the interchanges are applied to the upper triangular part and the strictly lower triangular part of A is not referenced; if UPLO = ‘L’, the interchanges are applied to the lower triangular part and the part of A above the diagonal is not referenced.

in
lda

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

in
i1

Index of the first row to swap (0-based).

in
i2

Index of the second row to swap (0-based).

Functions

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

ZSYSWAPR applies an elementary permutation on the rows and the columns of a symmetric matrix.

Parameters

in
uplo

Specifies whether the details of the factorization are stored as an upper or lower triangular matrix. = ‘U’: Upper triangular, form is A = U*D*U**T; = ‘L’: Lower triangular, form is A = L*D*L**T.

in
n

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

inout
A

Double complex array, dimension (lda, n). On entry, the N-by-N matrix A. On exit, the permuted matrix where the rows i1 and i2 and columns i1 and i2 are interchanged. If UPLO = ‘U’, the interchanges are applied to the upper triangular part and the strictly lower triangular part of A is not referenced; if UPLO = ‘L’, the interchanges are applied to the lower triangular part and the part of A above the diagonal is not referenced.

in
lda

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

in
i1

Index of the first row to swap (0-based).

in
i2

Index of the second row to swap (0-based).