diff options
Diffstat (limited to 'TESTING/MATGEN/claghe.f')
-rw-r--r-- | TESTING/MATGEN/claghe.f | 147 |
1 files changed, 106 insertions, 41 deletions
diff --git a/TESTING/MATGEN/claghe.f b/TESTING/MATGEN/claghe.f index f9e4a03d..6cee2d60 100644 --- a/TESTING/MATGEN/claghe.f +++ b/TESTING/MATGEN/claghe.f @@ -1,57 +1,122 @@ - SUBROUTINE CLAGHE( N, K, D, A, LDA, ISEED, WORK, INFO ) -* -* -- LAPACK auxiliary test routine (version 3.1) -- -* Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. -* November 2006 -* -* .. Scalar Arguments .. - INTEGER INFO, K, LDA, N -* .. -* .. Array Arguments .. - INTEGER ISEED( 4 ) - REAL D( * ) - COMPLEX A( LDA, * ), WORK( * ) -* .. -* +*> \brief \b CLAGHE +* +* =========== DOCUMENTATION =========== +* +* Online html documentation available at +* http://www.netlib.org/lapack/explore-html/ +* +* Definition +* ========== +* +* SUBROUTINE CLAGHE( N, K, D, A, LDA, ISEED, WORK, INFO ) +* +* .. Scalar Arguments .. +* INTEGER INFO, K, LDA, N +* .. +* .. Array Arguments .. +* INTEGER ISEED( 4 ) +* REAL D( * ) +* COMPLEX A( LDA, * ), WORK( * ) +* .. +* * Purpose * ======= * -* CLAGHE generates a complex hermitian matrix A, by pre- and post- -* multiplying a real diagonal matrix D with a random unitary matrix: -* A = U*D*U'. The semi-bandwidth may then be reduced to k by additional -* unitary transformations. +*>\details \b Purpose: +*>\verbatim +*> +*> CLAGHE generates a complex hermitian matrix A, by pre- and post- +*> multiplying a real diagonal matrix D with a random unitary matrix: +*> A = U*D*U'. The semi-bandwidth may then be reduced to k by additional +*> unitary transformations. +*> +*>\endverbatim * * Arguments * ========= * -* N (input) INTEGER -* The order of the matrix A. N >= 0. -* -* K (input) INTEGER -* The number of nonzero subdiagonals within the band of A. -* 0 <= K <= N-1. +*> \param[in] N +*> \verbatim +*> N is INTEGER +*> The order of the matrix A. N >= 0. +*> \endverbatim +*> +*> \param[in] K +*> \verbatim +*> K is INTEGER +*> The number of nonzero subdiagonals within the band of A. +*> 0 <= K <= N-1. +*> \endverbatim +*> +*> \param[in] D +*> \verbatim +*> D is REAL array, dimension (N) +*> The diagonal elements of the diagonal matrix D. +*> \endverbatim +*> +*> \param[out] A +*> \verbatim +*> A is COMPLEX array, dimension (LDA,N) +*> The generated n by n hermitian matrix A (the full matrix is +*> stored). +*> \endverbatim +*> +*> \param[in] LDA +*> \verbatim +*> LDA is INTEGER +*> The leading dimension of the array A. LDA >= N. +*> \endverbatim +*> +*> \param[in,out] ISEED +*> \verbatim +*> ISEED is INTEGER array, dimension (4) +*> On entry, the seed of the random number generator; the array +*> elements must be between 0 and 4095, and ISEED(4) must be +*> odd. +*> On exit, the seed is updated. +*> \endverbatim +*> +*> \param[out] WORK +*> \verbatim +*> WORK is COMPLEX array, dimension (2*N) +*> \endverbatim +*> +*> \param[out] INFO +*> \verbatim +*> INFO is INTEGER +*> = 0: successful exit +*> < 0: if INFO = -i, the i-th argument had an illegal value +*> \endverbatim +*> +* +* Authors +* ======= * -* D (input) REAL array, dimension (N) -* The diagonal elements of the diagonal matrix D. +*> \author Univ. of Tennessee +*> \author Univ. of California Berkeley +*> \author Univ. of Colorado Denver +*> \author NAG Ltd. * -* A (output) COMPLEX array, dimension (LDA,N) -* The generated n by n hermitian matrix A (the full matrix is -* stored). +*> \date November 2011 * -* LDA (input) INTEGER -* The leading dimension of the array A. LDA >= N. +*> \ingroup complex_matgen * -* ISEED (input/output) INTEGER array, dimension (4) -* On entry, the seed of the random number generator; the array -* elements must be between 0 and 4095, and ISEED(4) must be -* odd. -* On exit, the seed is updated. +* ===================================================================== + SUBROUTINE CLAGHE( N, K, D, A, LDA, ISEED, WORK, INFO ) * -* WORK (workspace) COMPLEX array, dimension (2*N) +* -- LAPACK auxiliary routine (version 3.1) -- +* -- LAPACK is a software package provided by Univ. of Tennessee, -- +* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..-- +* November 2011 * -* INFO (output) INTEGER -* = 0: successful exit -* < 0: if INFO = -i, the i-th argument had an illegal value +* .. Scalar Arguments .. + INTEGER INFO, K, LDA, N +* .. +* .. Array Arguments .. + INTEGER ISEED( 4 ) + REAL D( * ) + COMPLEX A( LDA, * ), WORK( * ) +* .. * * ===================================================================== * |