version 1.4, 2010/08/06 15:32:47
|
version 1.12, 2012/12/14 12:30:34
|
Line 1
|
Line 1
|
|
*> \brief \b ZLAUU2 computes the product UUH or LHL, where U and L are upper or lower triangular matrices (unblocked algorithm). |
|
* |
|
* =========== DOCUMENTATION =========== |
|
* |
|
* Online html documentation available at |
|
* http://www.netlib.org/lapack/explore-html/ |
|
* |
|
*> \htmlonly |
|
*> Download ZLAUU2 + dependencies |
|
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/zlauu2.f"> |
|
*> [TGZ]</a> |
|
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/zlauu2.f"> |
|
*> [ZIP]</a> |
|
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/zlauu2.f"> |
|
*> [TXT]</a> |
|
*> \endhtmlonly |
|
* |
|
* Definition: |
|
* =========== |
|
* |
|
* SUBROUTINE ZLAUU2( UPLO, N, A, LDA, INFO ) |
|
* |
|
* .. Scalar Arguments .. |
|
* CHARACTER UPLO |
|
* INTEGER INFO, LDA, N |
|
* .. |
|
* .. Array Arguments .. |
|
* COMPLEX*16 A( LDA, * ) |
|
* .. |
|
* |
|
* |
|
*> \par Purpose: |
|
* ============= |
|
*> |
|
*> \verbatim |
|
*> |
|
*> ZLAUU2 computes the product U * U**H or L**H * L, where the triangular |
|
*> factor U or L is stored in the upper or lower triangular part of |
|
*> the array A. |
|
*> |
|
*> If UPLO = 'U' or 'u' then the upper triangle of the result is stored, |
|
*> overwriting the factor U in A. |
|
*> If UPLO = 'L' or 'l' then the lower triangle of the result is stored, |
|
*> overwriting the factor L in A. |
|
*> |
|
*> This is the unblocked form of the algorithm, calling Level 2 BLAS. |
|
*> \endverbatim |
|
* |
|
* Arguments: |
|
* ========== |
|
* |
|
*> \param[in] UPLO |
|
*> \verbatim |
|
*> UPLO is CHARACTER*1 |
|
*> Specifies whether the triangular factor stored in the array A |
|
*> is upper or lower triangular: |
|
*> = 'U': Upper triangular |
|
*> = 'L': Lower triangular |
|
*> \endverbatim |
|
*> |
|
*> \param[in] N |
|
*> \verbatim |
|
*> N is INTEGER |
|
*> The order of the triangular factor U or L. N >= 0. |
|
*> \endverbatim |
|
*> |
|
*> \param[in,out] A |
|
*> \verbatim |
|
*> A is COMPLEX*16 array, dimension (LDA,N) |
|
*> On entry, the triangular factor U or L. |
|
*> On exit, if UPLO = 'U', the upper triangle of A is |
|
*> overwritten with the upper triangle of the product U * U**H; |
|
*> if UPLO = 'L', the lower triangle of A is overwritten with |
|
*> the lower triangle of the product L**H * L. |
|
*> \endverbatim |
|
*> |
|
*> \param[in] LDA |
|
*> \verbatim |
|
*> LDA is INTEGER |
|
*> The leading dimension of the array A. LDA >= max(1,N). |
|
*> \endverbatim |
|
*> |
|
*> \param[out] INFO |
|
*> \verbatim |
|
*> INFO is INTEGER |
|
*> = 0: successful exit |
|
*> < 0: if INFO = -k, the k-th argument had an illegal value |
|
*> \endverbatim |
|
* |
|
* Authors: |
|
* ======== |
|
* |
|
*> \author Univ. of Tennessee |
|
*> \author Univ. of California Berkeley |
|
*> \author Univ. of Colorado Denver |
|
*> \author NAG Ltd. |
|
* |
|
*> \date September 2012 |
|
* |
|
*> \ingroup complex16OTHERauxiliary |
|
* |
|
* ===================================================================== |
SUBROUTINE ZLAUU2( UPLO, N, A, LDA, INFO ) |
SUBROUTINE ZLAUU2( UPLO, N, A, LDA, INFO ) |
* |
* |
* -- LAPACK auxiliary routine (version 3.2) -- |
* -- LAPACK auxiliary routine (version 3.4.2) -- |
* -- 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 2006 |
* September 2012 |
* |
* |
* .. Scalar Arguments .. |
* .. Scalar Arguments .. |
CHARACTER UPLO |
CHARACTER UPLO |
Line 13
|
Line 115
|
COMPLEX*16 A( LDA, * ) |
COMPLEX*16 A( LDA, * ) |
* .. |
* .. |
* |
* |
* Purpose |
|
* ======= |
|
* |
|
* ZLAUU2 computes the product U * U' or L' * L, where the triangular |
|
* factor U or L is stored in the upper or lower triangular part of |
|
* the array A. |
|
* |
|
* If UPLO = 'U' or 'u' then the upper triangle of the result is stored, |
|
* overwriting the factor U in A. |
|
* If UPLO = 'L' or 'l' then the lower triangle of the result is stored, |
|
* overwriting the factor L in A. |
|
* |
|
* This is the unblocked form of the algorithm, calling Level 2 BLAS. |
|
* |
|
* Arguments |
|
* ========= |
|
* |
|
* UPLO (input) CHARACTER*1 |
|
* Specifies whether the triangular factor stored in the array A |
|
* is upper or lower triangular: |
|
* = 'U': Upper triangular |
|
* = 'L': Lower triangular |
|
* |
|
* N (input) INTEGER |
|
* The order of the triangular factor U or L. N >= 0. |
|
* |
|
* A (input/output) COMPLEX*16 array, dimension (LDA,N) |
|
* On entry, the triangular factor U or L. |
|
* On exit, if UPLO = 'U', the upper triangle of A is |
|
* overwritten with the upper triangle of the product U * U'; |
|
* if UPLO = 'L', the lower triangle of A is overwritten with |
|
* the lower triangle of the product L' * L. |
|
* |
|
* LDA (input) INTEGER |
|
* The leading dimension of the array A. LDA >= max(1,N). |
|
* |
|
* INFO (output) INTEGER |
|
* = 0: successful exit |
|
* < 0: if INFO = -k, the k-th argument had an illegal value |
|
* |
|
* ===================================================================== |
* ===================================================================== |
* |
* |
* .. Parameters .. |
* .. Parameters .. |
Line 100
|
Line 162
|
* |
* |
IF( UPPER ) THEN |
IF( UPPER ) THEN |
* |
* |
* Compute the product U * U'. |
* Compute the product U * U**H. |
* |
* |
DO 10 I = 1, N |
DO 10 I = 1, N |
AII = A( I, I ) |
AII = A( I, I ) |
Line 119
|
Line 181
|
* |
* |
ELSE |
ELSE |
* |
* |
* Compute the product L' * L. |
* Compute the product L**H * L. |
* |
* |
DO 20 I = 1, N |
DO 20 I = 1, N |
AII = A( I, I ) |
AII = A( I, I ) |