120 DOUBLE PRECISION FUNCTION zlansy( NORM, UPLO, N, A, LDA, WORK )
131 DOUBLE PRECISION work( * )
132 COMPLEX*16 a( lda, * )
138 DOUBLE PRECISION one, zero
139 parameter( one = 1.0d+0, zero = 0.0d+0 )
143 DOUBLE PRECISION absa, scale, sum, value
159 ELSE IF(
lsame( norm,
'M' ) )
THEN
164 IF(
lsame( uplo,
'U' ) )
THEN
167 sum = abs( a( i, j ) )
168 IF(
VALUE .LT. sum .OR.
disnan( sum ) )
VALUE = sum
174 sum = abs( a( i, j ) )
175 IF(
VALUE .LT. sum .OR.
disnan( sum ) )
VALUE = sum
179 ELSE IF( (
lsame( norm,
'I' ) ) .OR.
180 $ (
lsame( norm,
'O' ) ) .OR.
181 $ ( norm.EQ.
'1' ) )
THEN
186 IF(
lsame( uplo,
'U' ) )
THEN
190 absa = abs( a( i, j ) )
192 work( i ) = work( i ) + absa
194 work( j ) = sum + abs( a( j, j ) )
198 IF(
VALUE .LT. sum .OR.
disnan( sum ) )
VALUE = sum
205 sum = work( j ) + abs( a( j, j ) )
207 absa = abs( a( i, j ) )
209 work( i ) = work( i ) + absa
211 IF(
VALUE .LT. sum .OR.
disnan( sum ) )
VALUE = sum
214 ELSE IF( (
lsame( norm,
'F' ) ) .OR.
215 $ (
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 )
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.