124 REAL FUNCTION clansy( NORM, UPLO, N, A, LDA, WORK )
144 parameter ( one = 1.0e+0, zero = 0.0e+0 )
148 REAL ABSA, SCALE, SUM, VALUE
151 LOGICAL LSAME, SISNAN
152 EXTERNAL lsame, sisnan
164 ELSE IF( lsame( norm,
'M' ) )
THEN
169 IF( lsame( uplo,
'U' ) )
THEN
172 sum = abs( a( i, j ) )
173 IF(
VALUE .LT. sum .OR. sisnan( sum ) )
VALUE = sum
179 sum = abs( a( i, j ) )
180 IF(
VALUE .LT. sum .OR. sisnan( sum ) )
VALUE = sum
184 ELSE IF( ( lsame( norm,
'I' ) ) .OR. ( lsame( norm,
'O' ) ) .OR.
185 $ ( norm.EQ.
'1' ) )
THEN
190 IF( lsame( uplo,
'U' ) )
THEN
194 absa = abs( a( i, j ) )
196 work( i ) = work( i ) + absa
198 work( j ) = sum + abs( a( j, j ) )
202 IF(
VALUE .LT. sum .OR. sisnan( sum ) )
VALUE = sum
209 sum = work( j ) + abs( a( j, j ) )
211 absa = abs( a( i, j ) )
213 work( i ) = work( i ) + absa
215 IF(
VALUE .LT. sum .OR. sisnan( sum ) )
VALUE = sum
218 ELSE IF( ( lsame( norm,
'F' ) ) .OR. ( lsame( norm,
'E' ) ) )
THEN
224 IF( lsame( uplo,
'U' ) )
THEN
226 CALL classq( j-1, a( 1, j ), 1, scale, sum )
230 CALL classq( n-j, a( j+1, j ), 1, scale, sum )
234 CALL classq( n, a, lda+1, scale, sum )
235 VALUE = scale*sqrt( sum )
subroutine classq(N, X, INCX, SCALE, SUMSQ)
CLASSQ updates a sum of squares represented in scaled form.
real function clansy(NORM, UPLO, N, A, LDA, WORK)
CLANSY returns the value of the 1-norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a complex symmetric matrix.