Browse Source

Fix documentation error and ordering bug (Reference-LAPACK PR 1140)

pull/5351/head
Martin Kroeker GitHub 10 months ago
parent
commit
5aeca597fe
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
8 changed files with 38 additions and 17 deletions
  1. +1
    -1
      lapack-netlib/SRC/dlaed2.f
  2. +1
    -1
      lapack-netlib/SRC/dlaed8.f
  3. +11
    -4
      lapack-netlib/SRC/dlasd2.f
  4. +2
    -2
      lapack-netlib/SRC/dlasd7.f
  5. +1
    -1
      lapack-netlib/SRC/slaed2.f
  6. +1
    -1
      lapack-netlib/SRC/slaed8.f
  7. +11
    -4
      lapack-netlib/SRC/slasd2.f
  8. +10
    -3
      lapack-netlib/SRC/slasd7.f

+ 1
- 1
lapack-netlib/SRC/dlaed2.f View File

@@ -75,7 +75,7 @@
*> On entry, D contains the eigenvalues of the two submatrices to
*> be combined.
*> On exit, D contains the trailing (N-K) updated eigenvalues
*> (those which were deflated) sorted into increasing order.
*> (those which were deflated) sorted into decreasing order.
*> \endverbatim
*>
*> \param[in,out] Q


+ 1
- 1
lapack-netlib/SRC/dlaed8.f View File

@@ -85,7 +85,7 @@
*> D is DOUBLE PRECISION array, dimension (N)
*> On entry, the eigenvalues of the two submatrices to be
*> combined. On exit, the trailing (N-K) updated eigenvalues
*> (those which were deflated) sorted into increasing order.
*> (those which were deflated) sorted into decreasing order.
*> \endverbatim
*>
*> \param[in,out] Q


+ 11
- 4
lapack-netlib/SRC/dlasd2.f View File

@@ -88,7 +88,7 @@
*> On entry D contains the singular values of the two submatrices
*> to be combined. On exit D contains the trailing (N-K) updated
*> singular values (those which were deflated) sorted into
*> increasing order.
*> decreasing order.
*> \endverbatim
*>
*> \param[out] Z
@@ -219,7 +219,7 @@
*> IDXQ is INTEGER array, dimension(N)
*> This contains the permutation which separately sorts the two
*> sub-problems in D into ascending order. Note that entries in
*> the first hlaf of this permutation must first be moved one
*> the first half of this permutation must first be moved one
*> position backward; and entries in the second half
*> must first have NL+1 added to their values.
*> \endverbatim
@@ -451,7 +451,7 @@
*
* Check if singular values are close enough to allow deflation.
*
IF( ABS( D( J )-D( JPREV ) ).LE.TOL ) THEN
IF( ( D( J )-D( JPREV ) ).LE.TOL ) THEN
*
* Deflation is possible.
*
@@ -486,7 +486,14 @@
END IF
COLTYP( JPREV ) = 4
K2 = K2 - 1
IDXP( K2 ) = JPREV
*
* Insert the deflated index in the correct position in IDXP.
* If J - JPREV is greater than 1, the indices in between
* must be shifted to preserve the correct output order.
*
DO 105 JP = JPREV, J - 1
IDXP( K2 + J - 1 - JP ) = JP
105 CONTINUE
JPREV = J
ELSE
K = K + 1


+ 2
- 2
lapack-netlib/SRC/dlasd7.f View File

@@ -495,9 +495,9 @@
* If J - JPREV is greater than 1, the indices in between
* must be shifted to preserve the correct output order.
*
DO 130 JP = JPREV, J - 1
DO 85 JP = JPREV, J - 1
IDXP( K2 + J - 1 - JP ) = JP
130 CONTINUE
85 CONTINUE
JPREV = J
ELSE
K = K + 1


+ 1
- 1
lapack-netlib/SRC/slaed2.f View File

@@ -75,7 +75,7 @@
*> On entry, D contains the eigenvalues of the two submatrices to
*> be combined.
*> On exit, D contains the trailing (N-K) updated eigenvalues
*> (those which were deflated) sorted into increasing order.
*> (those which were deflated) sorted into decreasing order.
*> \endverbatim
*>
*> \param[in,out] Q


+ 1
- 1
lapack-netlib/SRC/slaed8.f View File

@@ -85,7 +85,7 @@
*> D is REAL array, dimension (N)
*> On entry, the eigenvalues of the two submatrices to be
*> combined. On exit, the trailing (N-K) updated eigenvalues
*> (those which were deflated) sorted into increasing order.
*> (those which were deflated) sorted into decreasing order.
*> \endverbatim
*>
*> \param[in,out] Q


+ 11
- 4
lapack-netlib/SRC/slasd2.f View File

@@ -88,7 +88,7 @@
*> On entry D contains the singular values of the two submatrices
*> to be combined. On exit D contains the trailing (N-K) updated
*> singular values (those which were deflated) sorted into
*> increasing order.
*> decreasing order.
*> \endverbatim
*>
*> \param[out] Z
@@ -219,7 +219,7 @@
*> IDXQ is INTEGER array, dimension (N)
*> This contains the permutation which separately sorts the two
*> sub-problems in D into ascending order. Note that entries in
*> the first hlaf of this permutation must first be moved one
*> the first half of this permutation must first be moved one
*> position backward; and entries in the second half
*> must first have NL+1 added to their values.
*> \endverbatim
@@ -451,7 +451,7 @@
*
* Check if singular values are close enough to allow deflation.
*
IF( ABS( D( J )-D( JPREV ) ).LE.TOL ) THEN
IF( ( D( J )-D( JPREV ) ).LE.TOL ) THEN
*
* Deflation is possible.
*
@@ -486,7 +486,14 @@
END IF
COLTYP( JPREV ) = 4
K2 = K2 - 1
IDXP( K2 ) = JPREV
*
* Insert the deflated index in the correct position in IDXP.
* If J - JPREV is greater than 1, the indices in between
* must be shifted to preserve the correct output order.
*
DO 105 JP = JPREV, J - 1
IDXP( K2 + J - 1 - JP ) = JP
105 CONTINUE
JPREV = J
ELSE
K = K + 1


+ 10
- 3
lapack-netlib/SRC/slasd7.f View File

@@ -101,7 +101,7 @@
*> On entry D contains the singular values of the two submatrices
*> to be combined. On exit D contains the trailing (N-K) updated
*> singular values (those which were deflated) sorted into
*> increasing order.
*> decreasing order.
*> \endverbatim
*>
*> \param[out] Z
@@ -454,7 +454,7 @@
*
* Check if singular values are close enough to allow deflation.
*
IF( ABS( D( J )-D( JPREV ) ).LE.TOL ) THEN
IF( ( D( J )-D( JPREV ) ).LE.TOL ) THEN
*
* Deflation is possible.
*
@@ -490,7 +490,14 @@
CALL SROT( 1, VF( JPREV ), 1, VF( J ), 1, C, S )
CALL SROT( 1, VL( JPREV ), 1, VL( J ), 1, C, S )
K2 = K2 - 1
IDXP( K2 ) = JPREV
*
* Insert the deflated index in the correct position in IDXP.
* If J - JPREV is greater than 1, the indices in between
* must be shifted to preserve the correct output order.
*
DO 85 JP = JPREV, J - 1
IDXP( K2 + J - 1 - JP ) = JP
85 CONTINUE
JPREV = J
ELSE
K = K + 1


Loading…
Cancel
Save