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
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 )
logical function disnan(din)
DISNAN tests input for NaN.
double precision function zlanht(norm, n, d, e)
ZLANHT returns the value of the 1-norm, or the Frobenius norm, or the infinity norm,...
subroutine zlassq(n, x, incx, scale, sumsq)
ZLASSQ updates a sum of squares represented in scaled form.
subroutine dlassq(n, x, incx, scale, sumsq)
DLASSQ updates a sum of squares represented in scaled form.
logical function lsame(ca, cb)
LSAME