122 DOUBLE PRECISION FUNCTION zlansy( NORM, UPLO, N, A, LDA, WORK )
133 DOUBLE PRECISION work( * )
134 COMPLEX*16 a( lda, * )
140 DOUBLE PRECISION one, zero
141 parameter( one = 1.0d+0, zero = 0.0d+0 )
145 DOUBLE PRECISION absa, scale, sum, value
161 ELSE IF(
lsame( norm,
'M' ) )
THEN
166 IF(
lsame( uplo,
'U' ) )
THEN
169 sum = abs( a( i, j ) )
170 IF(
VALUE .LT. sum .OR.
disnan( sum ) )
VALUE = sum
176 sum = abs( a( i, j ) )
177 IF(
VALUE .LT. sum .OR.
disnan( sum ) )
VALUE = sum
181 ELSE IF( (
lsame( norm,
'I' ) ) .OR. (
lsame( norm,
'O' ) ) .OR.
182 $ ( norm.EQ.
'1' ) )
THEN
187 IF(
lsame( uplo,
'U' ) )
THEN
191 absa = abs( a( i, j ) )
193 work( i ) = work( i ) + absa
195 work( j ) = sum + abs( a( j, j ) )
199 IF(
VALUE .LT. sum .OR.
disnan( sum ) )
VALUE = sum
206 sum = work( j ) + abs( a( j, j ) )
208 absa = abs( a( i, j ) )
210 work( i ) = work( i ) + absa
212 IF(
VALUE .LT. sum .OR.
disnan( sum ) )
VALUE = sum
215 ELSE IF( (
lsame( norm,
'F' ) ) .OR. (
lsame( norm,
'E' ) ) )
THEN
221 IF(
lsame( uplo,
'U' ) )
THEN
223 CALL zlassq( j-1, a( 1, j ), 1, scale, sum )
227 CALL zlassq( n-j, a( j+1, j ), 1, scale, sum )
231 CALL zlassq( n, a, lda+1, scale, sum )
232 VALUE = scale*sqrt( sum )
logical function disnan(din)
DISNAN tests input for NaN.
double precision function zlansy(norm, uplo, n, a, lda, work)
ZLANSY 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.
logical function lsame(ca, cb)
LSAME