100 DOUBLE PRECISION FUNCTION zlanht( NORM, N, D, E )
111 DOUBLE PRECISION D( * )
118 DOUBLE PRECISION ONE, ZERO
119 parameter( one = 1.0d+0, zero = 0.0d+0 )
123 DOUBLE PRECISION ANORM, SCALE, SUM
126 LOGICAL LSAME, DISNAN
127 EXTERNAL lsame, disnan
130 EXTERNAL dlassq, zlassq
133 INTRINSIC abs, max, sqrt
139 ELSE IF( lsame( norm,
'M' ) )
THEN 143 anorm = abs( d( n ) )
146 IF( anorm .LT. sum .OR. disnan( sum ) ) anorm = sum
148 IF( anorm .LT. sum .OR. disnan( sum ) ) anorm = sum
150 ELSE IF( lsame( norm,
'O' ) .OR. norm.EQ.
'1' .OR.
151 $ lsame( norm,
'I' ) )
THEN 156 anorm = abs( d( 1 ) )
158 anorm = abs( d( 1 ) )+abs( e( 1 ) )
159 sum = abs( e( n-1 ) )+abs( d( n ) )
160 IF( anorm .LT. sum .OR. disnan( sum ) ) anorm = sum
162 sum = abs( d( i ) )+abs( e( i ) )+abs( e( i-1 ) )
163 IF( anorm .LT. sum .OR. disnan( sum ) ) anorm = sum
166 ELSE IF( ( lsame( norm,
'F' ) ) .OR. ( lsame( norm,
'E' ) ) )
THEN 173 CALL zlassq( n-1, e, 1, scale, sum )
176 CALL dlassq( n, d, 1, scale, sum )
177 anorm = scale*sqrt( sum )
double precision function zlanht(NORM, N, D, E)
ZLANHT returns the value of the 1-norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a complex Hermitian tridiagonal matrix.