1 DOUBLE PRECISION FUNCTION dlanst( NORM, N, D, E )
13 DOUBLE PRECISION d( * ), e( * )
61 DOUBLE PRECISION one, zero
62 parameter( one = 1.0d+0, zero = 0.0d+0 )
66 DOUBLE PRECISION anorm,
scale, sum
76 INTRINSIC abs, max, sqrt
82 ELSE IF(
lsame( norm,
'M' ) )
THEN
88 anorm = max( anorm, abs( d( i ) ) )
89 anorm = max( anorm, abs( e( i ) ) )
91 ELSE IF(
lsame( norm,
'O' ) .OR. norm.EQ.
'1' .OR.
92 $
lsame( norm,
'I' ) )
THEN
99 anorm = max( abs( d( 1 ) )+abs( e( 1 ) ),
100 $ abs( e( n-1 ) )+abs( d( n ) ) )
102 anorm = max( anorm, abs( d( i ) )+abs( e( i ) )+
106 ELSE IF( (
lsame( norm,
'F' ) ) .OR. (
lsame( norm,
'E' ) ) )
THEN
117 anorm =
scale*sqrt( sum )
subroutine scale(xyzl, nl)
double precision function dlanst(NORM, N, D, E)
subroutine dlassq(N, X, INCX, SCALE, SUMSQ)
logical function lsame(CA, CB)