102 DOUBLE PRECISION FUNCTION zlanht( NORM, N, D, E )
114 DOUBLE PRECISION d( * )
121 DOUBLE PRECISION one, zero
122 parameter( one = 1.0d+0, zero = 0.0d+0 )
126 DOUBLE PRECISION anorm, scale, sum
136 INTRINSIC abs, max, sqrt
142 ELSE IF(
lsame( norm,
'M' ) )
THEN
146 anorm = abs( d( n ) )
148 anorm = max( anorm, abs( d( i ) ) )
149 anorm = max( anorm, abs( e( i ) ) )
151 ELSE IF(
lsame( norm,
'O' ) .OR. norm.EQ.
'1' .OR.
152 $
lsame( norm,
'I' ) )
THEN
157 anorm = abs( d( 1 ) )
159 anorm = max( abs( d( 1 ) )+abs( e( 1 ) ),
160 $ abs( e( n-1 ) )+abs( d( n ) ) )
162 anorm = max( anorm, abs( d( i ) )+abs( e( i ) )+
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 )