1 DOUBLE PRECISION FUNCTION dlansy( NORM, UPLO, N, A, LDA, WORK )
13 DOUBLE PRECISION a( lda, * ), work( * )
77 DOUBLE PRECISION one, zero
78 parameter( one = 1.0d+0, zero = 0.0d+0 )
82 DOUBLE PRECISION absa,
scale, sum, value
92 INTRINSIC abs, max, sqrt
98 ELSE IF(
lsame( norm,
'M' ) )
THEN
103 IF(
lsame( uplo,
'U' ) )
THEN
106 VALUE = max(
VALUE, abs( a( i, j ) ) )
112 VALUE = max(
VALUE, abs( a( i, j ) ) )
116 ELSE IF( (
lsame( norm,
'I' ) ) .OR. (
lsame( norm,
'O' ) ) .OR.
117 $ ( norm.EQ.
'1' ) )
THEN
122 IF(
lsame( uplo,
'U' ) )
THEN
126 absa = abs( a( i, j ) )
128 work( i ) = work( i ) + absa
130 work( j ) = sum + abs( a( j, j ) )
133 VALUE = max(
VALUE, work( i ) )
140 sum = work( j ) + abs( a( j, j ) )
142 absa = abs( a( i, j ) )
144 work( i ) = work( i ) + absa
146 VALUE = max(
VALUE, sum )
149 ELSE IF( (
lsame( norm,
'F' ) ) .OR. (
lsame( norm,
'E' ) ) )
THEN
155 IF(
lsame( uplo,
'U' ) )
THEN
166 VALUE =
scale*sqrt( sum )
subroutine scale(xyzl, nl)
double precision function dlansy(NORM, UPLO, N, A, LDA, WORK)
subroutine dlassq(N, X, INCX, SCALE, SUMSQ)
logical function lsame(CA, CB)