123 DOUBLE PRECISION FUNCTION dlansy( NORM, UPLO, N, A, LDA, WORK )
135 DOUBLE PRECISION a( lda, * ), work( * )
141 DOUBLE PRECISION one, zero
142 parameter( one = 1.0d+0, zero = 0.0d+0 )
146 DOUBLE PRECISION absa, scale, sum, value
162 ELSE IF(
lsame( norm,
'M' ) )
THEN
167 IF(
lsame( uplo,
'U' ) )
THEN
170 sum = abs( a( i, j ) )
171 IF( value .LT. sum .OR.
disnan( sum ) ) value = sum
177 sum = abs( a( i, j ) )
178 IF( value .LT. sum .OR.
disnan( sum ) ) value = sum
182 ELSE IF( (
lsame( norm,
'I' ) ) .OR. (
lsame( norm,
'O' ) ) .OR.
183 $ ( norm.EQ.
'1' ) )
THEN
188 IF(
lsame( uplo,
'U' ) )
THEN
192 absa = abs( a( i, j ) )
194 work( i ) = work( i ) + absa
196 work( j ) = sum + abs( a( j, j ) )
200 IF( value .LT. sum .OR.
disnan( sum ) ) value = sum
207 sum = work( j ) + abs( a( j, j ) )
209 absa = abs( a( i, j ) )
211 work( i ) = work( i ) + absa
213 IF( value .LT. sum .OR.
disnan( sum ) ) value = sum
216 ELSE IF( (
lsame( norm,
'F' ) ) .OR. (
lsame( norm,
'E' ) ) )
THEN
222 IF(
lsame( uplo,
'U' ) )
THEN
224 CALL
dlassq( j-1, a( 1, j ), 1, scale, sum )
228 CALL
dlassq( n-j, a( j+1, j ), 1, scale, sum )
232 CALL
dlassq( n, a, lda+1, scale, sum )
233 value = scale*sqrt( sum )