version 1.12, 2018/05/29 07:18:37
|
version 1.13, 2023/08/07 08:39:38
|
Line 57
|
Line 57
|
*> |
*> |
*> \param[in,out] A |
*> \param[in,out] A |
*> \verbatim |
*> \verbatim |
*> A is COMPLEX*16 array, dimension (LDA,N) |
*> A is COMPLEX*16 array, dimension (LDA,*) |
*> On entry, the NB diagonal matrix D and the multipliers |
*> On entry, the N-by-N matrix A. On exit, the permuted matrix |
*> used to obtain the factor U or L as computed by ZSYTRF. |
*> where the rows I1 and I2 and columns I1 and I2 are interchanged. |
*> |
*> If UPLO = 'U', the interchanges are applied to the upper |
*> On exit, if INFO = 0, the (symmetric) inverse of the original |
*> triangular part and the strictly lower triangular part of A is |
*> matrix. If UPLO = 'U', the upper triangular part of the |
*> not referenced; if UPLO = 'L', the interchanges are applied to |
*> inverse is formed and the part of A below the diagonal is not |
*> the lower triangular part and the part of A above the diagonal |
*> referenced; if UPLO = 'L' the lower triangular part of the |
*> is not referenced. |
*> inverse is formed and the part of A above the diagonal is |
|
*> not referenced. |
|
*> \endverbatim |
*> \endverbatim |
*> |
*> |
*> \param[in] LDA |
*> \param[in] LDA |
Line 95
|
Line 93
|
*> \author Univ. of Colorado Denver |
*> \author Univ. of Colorado Denver |
*> \author NAG Ltd. |
*> \author NAG Ltd. |
* |
* |
*> \date December 2016 |
|
* |
|
*> \ingroup complex16SYauxiliary |
*> \ingroup complex16SYauxiliary |
* |
* |
* ===================================================================== |
* ===================================================================== |
SUBROUTINE ZSYSWAPR( UPLO, N, A, LDA, I1, I2) |
SUBROUTINE ZSYSWAPR( UPLO, N, A, LDA, I1, I2) |
* |
* |
* -- LAPACK auxiliary routine (version 3.7.0) -- |
* -- LAPACK auxiliary routine -- |
* -- LAPACK is a software package provided by Univ. of Tennessee, -- |
* -- LAPACK is a software package provided by Univ. of Tennessee, -- |
* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..-- |
* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..-- |
* December 2016 |
|
* |
* |
* .. Scalar Arguments .. |
* .. Scalar Arguments .. |
CHARACTER UPLO |
CHARACTER UPLO |
INTEGER I1, I2, LDA, N |
INTEGER I1, I2, LDA, N |
* .. |
* .. |
* .. Array Arguments .. |
* .. Array Arguments .. |
COMPLEX*16 A( LDA, N ) |
COMPLEX*16 A( LDA, * ) |
* |
* |
* ===================================================================== |
* ===================================================================== |
* |
* |
* .. |
* .. |
* .. Local Scalars .. |
* .. Local Scalars .. |
LOGICAL UPPER |
LOGICAL UPPER |
INTEGER I |
|
COMPLEX*16 TMP |
COMPLEX*16 TMP |
* |
* |
* .. External Functions .. |
* .. External Functions .. |
Line 146
|
Line 140
|
A(I1,I1)=A(I2,I2) |
A(I1,I1)=A(I2,I2) |
A(I2,I2)=TMP |
A(I2,I2)=TMP |
* |
* |
DO I=1,I2-I1-1 |
CALL ZSWAP( I2-I1-1, A(I1,I1+1), LDA, A(I1+1,I2), 1 ) |
TMP=A(I1,I1+I) |
|
A(I1,I1+I)=A(I1+I,I2) |
|
A(I1+I,I2)=TMP |
|
END DO |
|
* |
* |
* third swap |
* third swap |
* - swap row I1 and I2 from I2+1 to N |
* - swap row I1 and I2 from I2+1 to N |
DO I=I2+1,N |
IF ( I2.LT.N ) |
TMP=A(I1,I) |
$ CALL ZSWAP( N-I2, A(I1,I2+1), LDA, A(I2,I2+1), LDA ) |
A(I1,I)=A(I2,I) |
|
A(I2,I)=TMP |
|
END DO |
|
* |
* |
ELSE |
ELSE |
* |
* |
Line 174
|
Line 161
|
A(I1,I1)=A(I2,I2) |
A(I1,I1)=A(I2,I2) |
A(I2,I2)=TMP |
A(I2,I2)=TMP |
* |
* |
DO I=1,I2-I1-1 |
CALL ZSWAP( I2-I1-1, A(I1+1,I1), 1, A(I2,I1+1), LDA ) |
TMP=A(I1+I,I1) |
|
A(I1+I,I1)=A(I2,I1+I) |
|
A(I2,I1+I)=TMP |
|
END DO |
|
* |
* |
* third swap |
* third swap |
* - swap col I1 and I2 from I2+1 to N |
* - swap col I1 and I2 from I2+1 to N |
DO I=I2+1,N |
IF ( I2.LT.N ) |
TMP=A(I,I1) |
$ CALL ZSWAP( N-I2, A(I2+1,I1), 1, A(I2+1,I2), 1 ) |
A(I,I1)=A(I,I2) |
|
A(I,I2)=TMP |
|
END DO |
|
* |
* |
ENDIF |
ENDIF |
END SUBROUTINE ZSYSWAPR |
END SUBROUTINE ZSYSWAPR |