--- rpl/lapack/lapack/zla_gbrcond_c.f 2010/08/07 13:21:08 1.1
+++ rpl/lapack/lapack/zla_gbrcond_c.f 2012/12/14 12:30:29 1.9
@@ -1,18 +1,173 @@
+*> \brief \b ZLA_GBRCOND_C computes the infinity norm condition number of op(A)*inv(diag(c)) for general banded matrices.
+*
+* =========== DOCUMENTATION ===========
+*
+* Online html documentation available at
+* http://www.netlib.org/lapack/explore-html/
+*
+*> \htmlonly
+*> Download ZLA_GBRCOND_C + dependencies
+*>
+*> [TGZ]
+*>
+*> [ZIP]
+*>
+*> [TXT]
+*> \endhtmlonly
+*
+* Definition:
+* ===========
+*
+* DOUBLE PRECISION FUNCTION ZLA_GBRCOND_C( TRANS, N, KL, KU, AB,
+* LDAB, AFB, LDAFB, IPIV,
+* C, CAPPLY, INFO, WORK,
+* RWORK )
+*
+* .. Scalar Arguments ..
+* CHARACTER TRANS
+* LOGICAL CAPPLY
+* INTEGER N, KL, KU, KD, KE, LDAB, LDAFB, INFO
+* ..
+* .. Array Arguments ..
+* INTEGER IPIV( * )
+* COMPLEX*16 AB( LDAB, * ), AFB( LDAFB, * ), WORK( * )
+* DOUBLE PRECISION C( * ), RWORK( * )
+*
+*
+*
+*> \par Purpose:
+* =============
+*>
+*> \verbatim
+*>
+*> ZLA_GBRCOND_C Computes the infinity norm condition number of
+*> op(A) * inv(diag(C)) where C is a DOUBLE PRECISION vector.
+*> \endverbatim
+*
+* Arguments:
+* ==========
+*
+*> \param[in] TRANS
+*> \verbatim
+*> TRANS is CHARACTER*1
+*> Specifies the form of the system of equations:
+*> = 'N': A * X = B (No transpose)
+*> = 'T': A**T * X = B (Transpose)
+*> = 'C': A**H * X = B (Conjugate Transpose = Transpose)
+*> \endverbatim
+*>
+*> \param[in] N
+*> \verbatim
+*> N is INTEGER
+*> The number of linear equations, i.e., the order of the
+*> matrix A. N >= 0.
+*> \endverbatim
+*>
+*> \param[in] KL
+*> \verbatim
+*> KL is INTEGER
+*> The number of subdiagonals within the band of A. KL >= 0.
+*> \endverbatim
+*>
+*> \param[in] KU
+*> \verbatim
+*> KU is INTEGER
+*> The number of superdiagonals within the band of A. KU >= 0.
+*> \endverbatim
+*>
+*> \param[in] AB
+*> \verbatim
+*> AB is COMPLEX*16 array, dimension (LDAB,N)
+*> On entry, the matrix A in band storage, in rows 1 to KL+KU+1.
+*> The j-th column of A is stored in the j-th column of the
+*> array AB as follows:
+*> AB(KU+1+i-j,j) = A(i,j) for max(1,j-KU)<=i<=min(N,j+kl)
+*> \endverbatim
+*>
+*> \param[in] LDAB
+*> \verbatim
+*> LDAB is INTEGER
+*> The leading dimension of the array AB. LDAB >= KL+KU+1.
+*> \endverbatim
+*>
+*> \param[in] AFB
+*> \verbatim
+*> AFB is COMPLEX*16 array, dimension (LDAFB,N)
+*> Details of the LU factorization of the band matrix A, as
+*> computed by ZGBTRF. U is stored as an upper triangular
+*> band matrix with KL+KU superdiagonals in rows 1 to KL+KU+1,
+*> and the multipliers used during the factorization are stored
+*> in rows KL+KU+2 to 2*KL+KU+1.
+*> \endverbatim
+*>
+*> \param[in] LDAFB
+*> \verbatim
+*> LDAFB is INTEGER
+*> The leading dimension of the array AFB. LDAFB >= 2*KL+KU+1.
+*> \endverbatim
+*>
+*> \param[in] IPIV
+*> \verbatim
+*> IPIV is INTEGER array, dimension (N)
+*> The pivot indices from the factorization A = P*L*U
+*> as computed by ZGBTRF; row i of the matrix was interchanged
+*> with row IPIV(i).
+*> \endverbatim
+*>
+*> \param[in] C
+*> \verbatim
+*> C is DOUBLE PRECISION array, dimension (N)
+*> The vector C in the formula op(A) * inv(diag(C)).
+*> \endverbatim
+*>
+*> \param[in] CAPPLY
+*> \verbatim
+*> CAPPLY is LOGICAL
+*> If .TRUE. then access the vector C in the formula above.
+*> \endverbatim
+*>
+*> \param[out] INFO
+*> \verbatim
+*> INFO is INTEGER
+*> = 0: Successful exit.
+*> i > 0: The ith argument is invalid.
+*> \endverbatim
+*>
+*> \param[in] WORK
+*> \verbatim
+*> WORK is COMPLEX*16 array, dimension (2*N).
+*> Workspace.
+*> \endverbatim
+*>
+*> \param[in] RWORK
+*> \verbatim
+*> RWORK is DOUBLE PRECISION array, dimension (N).
+*> Workspace.
+*> \endverbatim
+*
+* Authors:
+* ========
+*
+*> \author Univ. of Tennessee
+*> \author Univ. of California Berkeley
+*> \author Univ. of Colorado Denver
+*> \author NAG Ltd.
+*
+*> \date September 2012
+*
+*> \ingroup complex16GBcomputational
+*
+* =====================================================================
DOUBLE PRECISION FUNCTION ZLA_GBRCOND_C( TRANS, N, KL, KU, AB,
$ LDAB, AFB, LDAFB, IPIV,
$ C, CAPPLY, INFO, WORK,
$ RWORK )
*
-* -- LAPACK routine (version 3.2.1) --
-* -- Contributed by James Demmel, Deaglan Halligan, Yozo Hida and --
-* -- Jason Riedy of Univ. of California Berkeley. --
-* -- April 2009 --
-*
-* -- LAPACK is a software package provided by Univ. of Tennessee, --
-* -- Univ. of California Berkeley and NAG Ltd. --
+* -- LAPACK computational routine (version 3.4.2) --
+* -- LAPACK is a software package provided by Univ. of Tennessee, --
+* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
+* September 2012
*
- IMPLICIT NONE
-* ..
* .. Scalar Arguments ..
CHARACTER TRANS
LOGICAL CAPPLY
@@ -24,71 +179,6 @@
DOUBLE PRECISION C( * ), RWORK( * )
*
*
-* Purpose
-* =======
-*
-* ZLA_GBRCOND_C Computes the infinity norm condition number of
-* op(A) * inv(diag(C)) where C is a DOUBLE PRECISION vector.
-*
-* Arguments
-* =========
-*
-* TRANS (input) CHARACTER*1
-* Specifies the form of the system of equations:
-* = 'N': A * X = B (No transpose)
-* = 'T': A**T * X = B (Transpose)
-* = 'C': A**H * X = B (Conjugate Transpose = Transpose)
-*
-* N (input) INTEGER
-* The number of linear equations, i.e., the order of the
-* matrix A. N >= 0.
-*
-* KL (input) INTEGER
-* The number of subdiagonals within the band of A. KL >= 0.
-*
-* KU (input) INTEGER
-* The number of superdiagonals within the band of A. KU >= 0.
-*
-* AB (input) COMPLEX*16 array, dimension (LDAB,N)
-* On entry, the matrix A in band storage, in rows 1 to KL+KU+1.
-* The j-th column of A is stored in the j-th column of the
-* array AB as follows:
-* AB(KU+1+i-j,j) = A(i,j) for max(1,j-KU)<=i<=min(N,j+kl)
-*
-* LDAB (input) INTEGER
-* The leading dimension of the array AB. LDAB >= KL+KU+1.
-*
-* AFB (input) COMPLEX*16 array, dimension (LDAFB,N)
-* Details of the LU factorization of the band matrix A, as
-* computed by ZGBTRF. U is stored as an upper triangular
-* band matrix with KL+KU superdiagonals in rows 1 to KL+KU+1,
-* and the multipliers used during the factorization are stored
-* in rows KL+KU+2 to 2*KL+KU+1.
-*
-* LDAFB (input) INTEGER
-* The leading dimension of the array AFB. LDAFB >= 2*KL+KU+1.
-*
-* IPIV (input) INTEGER array, dimension (N)
-* The pivot indices from the factorization A = P*L*U
-* as computed by ZGBTRF; row i of the matrix was interchanged
-* with row IPIV(i).
-*
-* C (input) DOUBLE PRECISION array, dimension (N)
-* The vector C in the formula op(A) * inv(diag(C)).
-*
-* CAPPLY (input) LOGICAL
-* If .TRUE. then access the vector C in the formula above.
-*
-* INFO (output) INTEGER
-* = 0: Successful exit.
-* i > 0: The ith argument is invalid.
-*
-* WORK (input) COMPLEX*16 array, dimension (2*N).
-* Workspace.
-*
-* RWORK (input) DOUBLE PRECISION array, dimension (N).
-* Workspace.
-*
* =====================================================================
*
* .. Local Scalars ..
@@ -219,7 +309,7 @@
END IF
ELSE
*
-* Multiply by inv(C').
+* Multiply by inv(C**H).
*
IF ( CAPPLY ) THEN
DO I = 1, N