LAPACK 3.12.0
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ crzt02()

real function crzt02 ( integer  m,
integer  n,
complex, dimension( lda, * )  af,
integer  lda,
complex, dimension( * )  tau,
complex, dimension( lwork )  work,
integer  lwork 
)

CRZT02

Purpose:
 CRZT02 returns
      || I - Q'*Q || / ( M * eps)
 where the matrix Q is defined by the Householder transformations
 generated by CTZRZF.
Parameters
[in]M
          M is INTEGER
          The number of rows of the matrix AF.
[in]N
          N is INTEGER
          The number of columns of the matrix AF.
[in]AF
          AF is COMPLEX array, dimension (LDA,N)
          The output of CTZRZF.
[in]LDA
          LDA is INTEGER
          The leading dimension of the array AF.
[in]TAU
          TAU is COMPLEX array, dimension (M)
          Details of the Householder transformations as returned by
          CTZRZF.
[out]WORK
          WORK is COMPLEX array, dimension (LWORK)
[in]LWORK
          LWORK is INTEGER
          Length of WORK array. LWORK >= N*N+N.
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.

Definition at line 89 of file crzt02.f.

91*
92* -- LAPACK test routine --
93* -- LAPACK is a software package provided by Univ. of Tennessee, --
94* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
95*
96* .. Scalar Arguments ..
97 INTEGER LDA, LWORK, M, N
98* ..
99* .. Array Arguments ..
100 COMPLEX AF( LDA, * ), TAU( * ), WORK( LWORK )
101* ..
102*
103* =====================================================================
104*
105* .. Parameters ..
106 REAL ZERO, ONE
107 parameter( zero = 0.0e0, one = 1.0e0 )
108* ..
109* .. Local Scalars ..
110 INTEGER I, INFO
111* ..
112* .. Local Arrays ..
113 REAL RWORK( 1 )
114* ..
115* .. External Functions ..
116 REAL CLANGE, SLAMCH
117 EXTERNAL clange, slamch
118* ..
119* .. External Subroutines ..
120 EXTERNAL claset, cunmrz, xerbla
121* ..
122* .. Intrinsic Functions ..
123 INTRINSIC cmplx, max, real
124* ..
125* .. Executable Statements ..
126*
127 crzt02 = zero
128*
129 IF( lwork.LT.n*n+n ) THEN
130 CALL xerbla( 'CRZT02', 7 )
131 RETURN
132 END IF
133*
134* Quick return if possible
135*
136 IF( m.LE.0 .OR. n.LE.0 )
137 $ RETURN
138*
139* Q := I
140*
141 CALL claset( 'Full', n, n, cmplx( zero ), cmplx( one ), work, n )
142*
143* Q := P(1) * ... * P(m) * Q
144*
145 CALL cunmrz( 'Left', 'No transpose', n, n, m, n-m, af, lda, tau,
146 $ work, n, work( n*n+1 ), lwork-n*n, info )
147*
148* Q := P(m)' * ... * P(1)' * Q
149*
150 CALL cunmrz( 'Left', 'Conjugate transpose', n, n, m, n-m, af, lda,
151 $ tau, work, n, work( n*n+1 ), lwork-n*n, info )
152*
153* Q := Q - I
154*
155 DO 10 i = 1, n
156 work( ( i-1 )*n+i ) = work( ( i-1 )*n+i ) - one
157 10 CONTINUE
158*
159 crzt02 = clange( 'One-norm', n, n, work, n, rwork ) /
160 $ ( slamch( 'Epsilon' )*real( max( m, n ) ) )
161 RETURN
162*
163* End of CRZT02
164*
subroutine xerbla(srname, info)
Definition cblat2.f:3285
real function crzt02(m, n, af, lda, tau, work, lwork)
CRZT02
Definition crzt02.f:91
real function slamch(cmach)
SLAMCH
Definition slamch.f:68
real function clange(norm, m, n, a, lda, work)
CLANGE returns the value of the 1-norm, Frobenius norm, infinity-norm, or the largest absolute value ...
Definition clange.f:115
subroutine claset(uplo, m, n, alpha, beta, a, lda)
CLASET initializes the off-diagonal elements and the diagonal elements of a matrix to given values.
Definition claset.f:106
subroutine cunmrz(side, trans, m, n, k, l, a, lda, tau, c, ldc, work, lwork, info)
CUNMRZ
Definition cunmrz.f:187
Here is the call graph for this function:
Here is the caller graph for this function: