Diff for /rpl/lapack/lapack/zsyswapr.f between versions 1.8 and 1.13

version 1.8, 2014/01/27 09:28:43 version 1.13, 2023/08/07 08:39:38
Line 2 Line 2
 *  *
 *  =========== DOCUMENTATION ===========  *  =========== DOCUMENTATION ===========
 *  *
 * Online html documentation available at   * Online html documentation available at
 *            http://www.netlib.org/lapack/explore-html/   *            http://www.netlib.org/lapack/explore-html/
 *  *
 *> \htmlonly  *> \htmlonly
 *> Download ZSYSWAPR + dependencies   *> Download ZSYSWAPR + dependencies
 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/zsyswapr.f">   *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/zsyswapr.f">
 *> [TGZ]</a>   *> [TGZ]</a>
 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/zsyswapr.f">   *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/zsyswapr.f">
 *> [ZIP]</a>   *> [ZIP]</a>
 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/zsyswapr.f">   *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/zsyswapr.f">
 *> [TXT]</a>  *> [TXT]</a>
 *> \endhtmlonly   *> \endhtmlonly
 *  *
 *  Definition:  *  Definition:
 *  ===========  *  ===========
 *  *
 *       SUBROUTINE ZSYSWAPR( UPLO, N, A, LDA, I1, I2)  *       SUBROUTINE ZSYSWAPR( UPLO, N, A, LDA, I1, I2)
 *   *
 *       .. 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, N )
 *    *
 *  *
 *> \par Purpose:  *> \par Purpose:
 *  =============  *  =============
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 90 Line 88
 *  Authors:  *  Authors:
 *  ========  *  ========
 *  *
 *> \author Univ. of Tennessee   *> \author Univ. of Tennessee
 *> \author Univ. of California Berkeley   *> \author Univ. of California Berkeley
 *> \author Univ. of Colorado Denver   *> \author Univ. of Colorado Denver
 *> \author NAG Ltd.   *> \author NAG Ltd.
 *  
 *> \date November 2011  
 *  *
 *> \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.4.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..--
 *     November 2011  
 *  *
 *     .. 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 136 Line 130
 *  *
 *         UPPER  *         UPPER
 *         first swap  *         first swap
 *          - swap column I1 and I2 from I1 to I1-1   *          - swap column I1 and I2 from I1 to I1-1
          CALL ZSWAP( I1-1, A(1,I1), 1, A(1,I2), 1 )           CALL ZSWAP( I1-1, A(1,I1), 1, A(1,I2), 1 )
 *  *
 *          second swap :  *          second swap :
 *          - swap A(I1,I1) and A(I2,I2)  *          - swap A(I1,I1) and A(I2,I2)
 *          - swap row I1 from I1+1 to I2-1 with col I2 from I1+1 to I2-1       *          - swap row I1 from I1+1 to I2-1 with col I2 from I1+1 to I2-1
          TMP=A(I1,I1)           TMP=A(I1,I1)
          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
 *  *
 *         LOWER  *         LOWER
 *         first swap  *         first swap
 *          - swap row I1 and I2 from I1 to I1-1   *          - swap row I1 and I2 from I1 to I1-1
          CALL ZSWAP( I1-1, A(I1,1), LDA, A(I2,1), LDA )           CALL ZSWAP( I1-1, A(I1,1), LDA, A(I2,1), LDA )
 *  *
 *         second swap :  *         second swap :
 *          - swap A(I1,I1) and A(I2,I2)  *          - swap A(I1,I1) and A(I2,I2)
 *          - swap col I1 from I1+1 to I2-1 with row I2 from I1+1 to I2-1       *          - swap col I1 from I1+1 to I2-1 with row I2 from I1+1 to I2-1
           TMP=A(I1,I1)            TMP=A(I1,I1)
           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

Removed from v.1.8  
changed lines
  Added in v.1.13


CVSweb interface <joel.bertrand@systella.fr>