*
* Copy non-updated column KK to column KP of submatrix A
* at step K. No need to copy element into column K
-* (or K and K-1) of A, since these columns will be later
-* overwritten.
+* (or K and K-1 for 2x2 pivot) of A, since these columns
+* will be later overwritten.
*
A( KP, KP ) = REAL( A( KK, KK ) )
CALL CCOPY( KK-1-KP, A( KP+1, KK ), 1, A( KP, KP+1 ),
$ CALL CCOPY( KP-1, A( 1, KK ), 1, A( 1, KP ), 1 )
*
* Interchange rows KK and KP in last K+1 to N columns of A
-* (columns K (or K and K-1) of A will be later overwritten)
-* and interchange rows KK and KP in last KKW to NB columns
-* of W
+* (columns K (or K and K-1 for 2x2 pivot) of A will be
+* later overwritten). Interchange rows KK and KP
+* in last KKW to NB columns of W.
*
IF( K.LT.N )
$ CALL CSWAP( N-K, A( KK, K+1 ), LDA, A( KP, K+1 ),
*
* Copy non-updated column KK to column KP of submatrix A
* at step K. No need to copy element into column K
-* (or K and K+1) of A, since these columns will be later
-* overwritten.
+* (or K and K+1 for 2x2 pivot) of A, since these columns
+* will be later overwritten.
*
A( KP, KP ) = REAL( A( KK, KK ) )
CALL CCOPY( KP-KK-1, A( KK+1, KK ), 1, A( KP, KK+1 ),
$ CALL CCOPY( N-KP, A( KP+1, KK ), 1, A( KP+1, KP ), 1 )
*
* Interchange rows KK and KP in first K-1 columns of A
-* (columns K (or K and K+1) of A will be later overwritten)
-* and interchange rows KK and KP in first KK columns of W
+* (columns K (or K and K+1 for 2x2 pivot) of A will be
+* later overwritten). Interchange rows KK and KP
+* in first KK columns of W.
*
IF( K.GT.1 )
$ CALL CSWAP( K-1, A( KK, 1 ), LDA, A( KP, 1 ), LDA )
*
* Copy non-updated column KK to column KP of submatrix A
* at step K. No need to copy element into column K
-* (or K and K-1) of A, since these columns will be later
-* overwritten.
+* (or K and K-1 for 2x2 pivot) of A, since these columns
+* will be later overwritten.
*
A( KP, KP ) = A( KK, KK )
CALL CCOPY( KK-1-KP, A( KP+1, KK ), 1, A( KP, KP+1 ),
$ CALL CCOPY( KP-1, A( 1, KK ), 1, A( 1, KP ), 1 )
*
* Interchange rows KK and KP in last K+1 to N columns of A
-* (columns K (or K and K-1) of A will be later overwritten)
-* and interchange rows KK and KP in last KKW to NB columns
-* of W
+* (columns K (or K and K-1 for 2x2 pivot) of A will be
+* later overwritten). Interchange rows KK and KP
+* in last KKW to NB columns of W.
*
IF( K.LT.N )
$ CALL CSWAP( N-K, A( KK, K+1 ), LDA, A( KP, K+1 ),
*
* Copy non-updated column KK to column KP of submatrix A
* at step K. No need to copy element into column K
-* (or K and K+1) of A, since these columns will be later
-* overwritten.
+* (or K and K+1 for 2x2 pivot) of A, since these columns
+* will be later overwritten.
*
A( KP, KP ) = A( KK, KK )
CALL CCOPY( KP-KK-1, A( KK+1, KK ), 1, A( KP, KK+1 ),
$ CALL CCOPY( N-KP, A( KP+1, KK ), 1, A( KP+1, KP ), 1 )
*
* Interchange rows KK and KP in first K-1 columns of A
-* (columns K (or K and K+1) of A will be later overwritten)
-* and interchange rows KK and KP in first KK columns of W
+* (columns K (or K and K+1 for 2x2 pivot) of A will be
+* later overwritten). Interchange rows KK and KP
+* in first KK columns of W.
*
IF( K.GT.1 )
$ CALL CSWAP( K-1, A( KK, 1 ), LDA, A( KP, 1 ), LDA )
*
* Copy non-updated column KK to column KP of submatrix A
* at step K. No need to copy element into column K
-* (or K and K-1) of A, since these columns will be later
-* overwritten.
+* (or K and K-1 for 2x2 pivot) of A, since these columns
+* will be later overwritten.
*
A( KP, KP ) = A( KK, KK )
CALL DCOPY( KK-1-KP, A( KP+1, KK ), 1, A( KP, KP+1 ),
$ CALL DCOPY( KP-1, A( 1, KK ), 1, A( 1, KP ), 1 )
*
* Interchange rows KK and KP in last K+1 to N columns of A
-* (columns K (or K and K-1) of A will be later overwritten)
-* and interchange rows KK and KP in last KKW to NB columns
-* of W
+* (columns K (or K and K-1 for 2x2 pivot) of A will be
+* later overwritten). Interchange rows KK and KP
+* in last KKW to NB columns of W.
*
IF( K.LT.N )
$ CALL DSWAP( N-K, A( KK, K+1 ), LDA, A( KP, K+1 ),
*
* Copy non-updated column KK to column KP of submatrix A
* at step K. No need to copy element into column K
-* (or K and K+1) of A, since these columns will be later
-* overwritten.
+* (or K and K+1 for 2x2 pivot) of A, since these columns
+* will be later overwritten.
*
A( KP, KP ) = A( KK, KK )
CALL DCOPY( KP-KK-1, A( KK+1, KK ), 1, A( KP, KK+1 ),
$ CALL DCOPY( N-KP, A( KP+1, KK ), 1, A( KP+1, KP ), 1 )
*
* Interchange rows KK and KP in first K-1 columns of A
-* (columns K (or K and K+1) of A will be later overwritten)
-* and interchange rows KK and KP in first KK columns of W
+* (columns K (or K and K+1 for 2x2 pivot) of A will be
+* later overwritten). Interchange rows KK and KP
+* in first KK columns of W.
*
IF( K.GT.1 )
$ CALL DSWAP( K-1, A( KK, 1 ), LDA, A( KP, 1 ), LDA )
*
* Copy non-updated column KK to column KP of submatrix A
* at step K. No need to copy element into column K
-* (or K and K-1) of A, since these columns will be later
-* overwritten.
+* (or K and K-1 for 2x2 pivot) of A, since these columns
+* will be later overwritten.
*
A( KP, KP ) = A( KK, KK )
CALL SCOPY( KK-1-KP, A( KP+1, KK ), 1, A( KP, KP+1 ),
$ CALL SCOPY( KP-1, A( 1, KK ), 1, A( 1, KP ), 1 )
*
* Interchange rows KK and KP in last K+1 to N columns of A
-* (columns K (or K and K-1) of A will be later overwritten)
-* and interchange rows KK and KP in last KKW to NB columns
-* of W
+* (columns K (or K and K-1 for 2x2 pivot) of A will be
+* later overwritten). Interchange rows KK and KP
+* in last KKW to NB columns of W.
*
IF( K.LT.N )
$ CALL SSWAP( N-K, A( KK, K+1 ), LDA, A( KP, K+1 ),
*
* Copy non-updated column KK to column KP of submatrix A
* at step K. No need to copy element into column K
-* (or K and K+1) of A, since these columns will be later
-* overwritten.
+* (or K and K+1 for 2x2 pivot) of A, since these columns
+* will be later overwritten.
*
A( KP, KP ) = A( KK, KK )
CALL SCOPY( KP-KK-1, A( KK+1, KK ), 1, A( KP, KK+1 ),
$ CALL SCOPY( N-KP, A( KP+1, KK ), 1, A( KP+1, KP ), 1 )
*
* Interchange rows KK and KP in first K-1 columns of A
-* (columns K (or K and K+1) of A will be later overwritten)
-* and interchange rows KK and KP in first KK columns of W
+* (columns K (or K and K+1 for 2x2 pivot) of A will be
+* later overwritten). Interchange rows KK and KP
+* in first KK columns of W.
*
IF( K.GT.1 )
$ CALL SSWAP( K-1, A( KK, 1 ), LDA, A( KP, 1 ), LDA )
*
* Copy non-updated column KK to column KP of submatrix A
* at step K. No need to copy element into column K
-* (or K and K-1) of A, since these columns will be later
-* overwritten.
+* (or K and K-1 for 2x2 pivot) of A, since these columns
+* will be later overwritten.
*
A( KP, KP ) = DBLE( A( KK, KK ) )
CALL ZCOPY( KK-1-KP, A( KP+1, KK ), 1, A( KP, KP+1 ),
$ CALL ZCOPY( KP-1, A( 1, KK ), 1, A( 1, KP ), 1 )
*
* Interchange rows KK and KP in last K+1 to N columns of A
-* (columns K (or K and K-1) of A will be later overwritten)
-* and interchange rows KK and KP in last KKW to NB columns
-* of W
+* (columns K (or K and K-1 for 2x2 pivot) of A will be
+* later overwritten). Interchange rows KK and KP
+* in last KKW to NB columns of W.
*
IF( K.LT.N )
$ CALL ZSWAP( N-K, A( KK, K+1 ), LDA, A( KP, K+1 ),
*
* Copy non-updated column KK to column KP of submatrix A
* at step K. No need to copy element into column K
-* (or K and K+1) of A, since these columns will be later
-* overwritten.
+* (or K and K+1 for 2x2 pivot) of A, since these columns
+* will be later overwritten.
*
A( KP, KP ) = DBLE( A( KK, KK ) )
CALL ZCOPY( KP-KK-1, A( KK+1, KK ), 1, A( KP, KK+1 ),
$ CALL ZCOPY( N-KP, A( KP+1, KK ), 1, A( KP+1, KP ), 1 )
*
* Interchange rows KK and KP in first K-1 columns of A
-* (columns K (or K and K+1) of A will be later overwritten)
-* and interchange rows KK and KP in first KK columns of W
+* (columns K (or K and K+1 for 2x2 pivot) of A will be
+* later overwritten). Interchange rows KK and KP
+* in first KK columns of W.
*
IF( K.GT.1 )
$ CALL ZSWAP( K-1, A( KK, 1 ), LDA, A( KP, 1 ), LDA )
*
* Copy non-updated column KK to column KP of submatrix A
* at step K. No need to copy element into column K
-* (or K and K-1) of A, since these columns will be later
-* overwritten.
+* (or K and K-1 for 2x2 pivot) of A, since these columns
+* will be later overwritten.
*
A( KP, KP ) = A( KK, KK )
CALL ZCOPY( KK-1-KP, A( KP+1, KK ), 1, A( KP, KP+1 ),
$ CALL ZCOPY( KP-1, A( 1, KK ), 1, A( 1, KP ), 1 )
*
* Interchange rows KK and KP in last K+1 to N columns of A
-* (columns K (or K and K-1) of A will be later overwritten)
-* and interchange rows KK and KP in last KKW to NB columns
-* of W
+* (columns K (or K and K-1 for 2x2 pivot) of A will be
+* later overwritten). Interchange rows KK and KP
+* in last KKW to NB columns of W.
*
IF( K.LT.N )
$ CALL ZSWAP( N-K, A( KK, K+1 ), LDA, A( KP, K+1 ),
*
* Copy non-updated column KK to column KP of submatrix A
* at step K. No need to copy element into column K
-* (or K and K+1) of A, since these columns will be later
-* overwritten.
+* (or K and K+1 for 2x2 pivot) of A, since these columns
+* will be later overwritten.
*
A( KP, KP ) = A( KK, KK )
CALL ZCOPY( KP-KK-1, A( KK+1, KK ), 1, A( KP, KK+1 ),
$ CALL ZCOPY( N-KP, A( KP+1, KK ), 1, A( KP+1, KP ), 1 )
*
* Interchange rows KK and KP in first K-1 columns of A
-* (columns K (or K and K+1) of A will be later overwritten)
-* and interchange rows KK and KP in first KK columns of W
+* (columns K (or K and K+1 for 2x2 pivot) of A will be
+* later overwritten). Interchange rows KK and KP
+* in first KK columns of W.
*
IF( K.GT.1 )
$ CALL ZSWAP( K-1, A( KK, 1 ), LDA, A( KP, 1 ), LDA )