LAPACK  3.6.1
LAPACK: Linear Algebra PACKage
double precision function drzt02 ( integer  M,
integer  N,
double precision, dimension( lda, * )  AF,
integer  LDA,
double precision, dimension( * )  TAU,
double precision, dimension( lwork )  WORK,
integer  LWORK 
)

DRZT02

Purpose:
 DRZT02 returns
      || I - Q'*Q || / ( M * eps)
 where the matrix Q is defined by the Householder transformations
 generated by DTZRZF.
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 DOUBLE PRECISION array, dimension (LDA,N)
          The output of DTZRZF.
[in]LDA
          LDA is INTEGER
          The leading dimension of the array AF.
[in]TAU
          TAU is DOUBLE PRECISION array, dimension (M)
          Details of the Householder transformations as returned by
          DTZRZF.
[out]WORK
          WORK is DOUBLE PRECISION array, dimension (LWORK)
[in]LWORK
          LWORK is INTEGER
          length of WORK array. LWORK >= N*N+N*NB.
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date
November 2011

Definition at line 93 of file drzt02.f.

93 *
94 * -- LAPACK test routine (version 3.4.0) --
95 * -- LAPACK is a software package provided by Univ. of Tennessee, --
96 * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
97 * November 2011
98 *
99 * .. Scalar Arguments ..
100  INTEGER lda, lwork, m, n
101 * ..
102 * .. Array Arguments ..
103  DOUBLE PRECISION af( lda, * ), tau( * ), work( lwork )
104 * ..
105 *
106 * =====================================================================
107 *
108 * .. Parameters ..
109  DOUBLE PRECISION zero, one
110  parameter ( zero = 0.0d+0, one = 1.0d+0 )
111 * ..
112 * .. Local Scalars ..
113  INTEGER i, info
114 * ..
115 * .. Local Arrays ..
116  DOUBLE PRECISION rwork( 1 )
117 * ..
118 * .. External Functions ..
119  DOUBLE PRECISION dlamch, dlange
120  EXTERNAL dlamch, dlange
121 * ..
122 * .. External Subroutines ..
123  EXTERNAL dlaset, dormrz, xerbla
124 * ..
125 * .. Intrinsic Functions ..
126  INTRINSIC dble, max
127 * ..
128 * .. Executable Statements ..
129 *
130  drzt02 = zero
131 *
132  IF( lwork.LT.n*n+n ) THEN
133  CALL xerbla( 'DRZT02', 7 )
134  RETURN
135  END IF
136 *
137 * Quick return if possible
138 *
139  IF( m.LE.0 .OR. n.LE.0 )
140  $ RETURN
141 *
142 * Q := I
143 *
144  CALL dlaset( 'Full', n, n, zero, one, work, n )
145 *
146 * Q := P(1) * ... * P(m) * Q
147 *
148  CALL dormrz( 'Left', 'No transpose', n, n, m, n-m, af, lda, tau,
149  $ work, n, work( n*n+1 ), lwork-n*n, info )
150 *
151 * Q := P(m) * ... * P(1) * Q
152 *
153  CALL dormrz( 'Left', 'Transpose', n, n, m, n-m, af, lda, tau,
154  $ work, n, work( n*n+1 ), lwork-n*n, info )
155 *
156 * Q := Q - I
157 *
158  DO 10 i = 1, n
159  work( ( i-1 )*n+i ) = work( ( i-1 )*n+i ) - one
160  10 CONTINUE
161 *
162  drzt02 = dlange( 'One-norm', n, n, work, n, rwork ) /
163  $ ( dlamch( 'Epsilon' )*dble( max( m, n ) ) )
164  RETURN
165 *
166 * End of DRZT02
167 *
subroutine dlaset(UPLO, M, N, ALPHA, BETA, A, LDA)
DLASET initializes the off-diagonal elements and the diagonal elements of a matrix to given values...
Definition: dlaset.f:112
double precision function dlamch(CMACH)
DLAMCH
Definition: dlamch.f:65
subroutine xerbla(SRNAME, INFO)
XERBLA
Definition: xerbla.f:62
double precision function dlange(NORM, M, N, A, LDA, WORK)
DLANGE returns the value of the 1-norm, Frobenius norm, infinity-norm, or the largest absolute value ...
Definition: dlange.f:116
double precision function drzt02(M, N, AF, LDA, TAU, WORK, LWORK)
DRZT02
Definition: drzt02.f:93
subroutine dormrz(SIDE, TRANS, M, N, K, L, A, LDA, TAU, C, LDC, WORK, LWORK, INFO)
DORMRZ
Definition: dormrz.f:189

Here is the call graph for this function: