version 1.11, 2012/08/22 09:48:14
|
version 1.21, 2023/08/07 08:38:49
|
Line 1
|
Line 1
|
*> \brief \b DGESC2 |
*> \brief \b DGESC2 solves a system of linear equations using the LU factorization with complete pivoting computed by sgetc2. |
* |
* |
* =========== 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 DGESC2 + dependencies |
*> Download DGESC2 + dependencies |
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dgesc2.f"> |
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dgesc2.f"> |
*> [TGZ]</a> |
*> [TGZ]</a> |
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dgesc2.f"> |
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dgesc2.f"> |
*> [ZIP]</a> |
*> [ZIP]</a> |
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dgesc2.f"> |
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dgesc2.f"> |
*> [TXT]</a> |
*> [TXT]</a> |
*> \endhtmlonly |
*> \endhtmlonly |
* |
* |
* Definition: |
* Definition: |
* =========== |
* =========== |
* |
* |
* SUBROUTINE DGESC2( N, A, LDA, RHS, IPIV, JPIV, SCALE ) |
* SUBROUTINE DGESC2( N, A, LDA, RHS, IPIV, JPIV, SCALE ) |
* |
* |
* .. Scalar Arguments .. |
* .. Scalar Arguments .. |
* INTEGER LDA, N |
* INTEGER LDA, N |
* DOUBLE PRECISION SCALE |
* DOUBLE PRECISION SCALE |
Line 28
|
Line 28
|
* INTEGER IPIV( * ), JPIV( * ) |
* INTEGER IPIV( * ), JPIV( * ) |
* DOUBLE PRECISION A( LDA, * ), RHS( * ) |
* DOUBLE PRECISION A( LDA, * ), RHS( * ) |
* .. |
* .. |
* |
* |
* |
* |
*> \par Purpose: |
*> \par Purpose: |
* ============= |
* ============= |
Line 90
|
Line 90
|
*> \verbatim |
*> \verbatim |
*> SCALE is DOUBLE PRECISION |
*> SCALE is DOUBLE PRECISION |
*> On exit, SCALE contains the scale factor. SCALE is chosen |
*> On exit, SCALE contains the scale factor. SCALE is chosen |
*> 0 <= SCALE <= 1 to prevent owerflow in the solution. |
*> 0 <= SCALE <= 1 to prevent overflow in the solution. |
*> \endverbatim |
*> \endverbatim |
* |
* |
* 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 doubleGEauxiliary |
*> \ingroup doubleGEauxiliary |
* |
* |
Line 114
|
Line 112
|
* ===================================================================== |
* ===================================================================== |
SUBROUTINE DGESC2( N, A, LDA, RHS, IPIV, JPIV, SCALE ) |
SUBROUTINE DGESC2( N, A, LDA, RHS, IPIV, JPIV, SCALE ) |
* |
* |
* -- 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 .. |
INTEGER LDA, N |
INTEGER LDA, N |
Line 139
|
Line 136
|
DOUBLE PRECISION BIGNUM, EPS, SMLNUM, TEMP |
DOUBLE PRECISION BIGNUM, EPS, SMLNUM, TEMP |
* .. |
* .. |
* .. External Subroutines .. |
* .. External Subroutines .. |
EXTERNAL DLASWP, DSCAL |
EXTERNAL DLASWP, DSCAL, DLABAD |
* .. |
* .. |
* .. External Functions .. |
* .. External Functions .. |
INTEGER IDAMAX |
INTEGER IDAMAX |
Line 151
|
Line 148
|
* .. |
* .. |
* .. Executable Statements .. |
* .. Executable Statements .. |
* |
* |
* Set constant to control owerflow |
* Set constant to control overflow |
* |
* |
EPS = DLAMCH( 'P' ) |
EPS = DLAMCH( 'P' ) |
SMLNUM = DLAMCH( 'S' ) / EPS |
SMLNUM = DLAMCH( 'S' ) / EPS |