9 SUBROUTINE xzlange ( NORM, M, N, A, LDA, WORK, VALUE )
22 DOUBLE PRECISION WORK( * )
23 COMPLEX*16 A( LDA, * )
79 DOUBLE PRECISION ONE, ZERO
80 parameter( one = 1.0d+0, zero = 0.0d+0 )
84 DOUBLE PRECISION SCALE, SUM, VALUE
94 INTRINSIC abs,
max,
min, sqrt
98 IF(
min( m, n ).EQ.0 )
THEN
100 ELSE IF( lsame( norm,
'M' ) )
THEN
107 VALUE =
max(
VALUE, abs( a( i, j ) ) )
110 ELSE IF( ( lsame( norm,
'O' ) ) .OR. ( norm.EQ.
'1' ) )
THEN
118 sum = sum + abs( a( i, j ) )
120 VALUE =
max(
VALUE, sum )
122 ELSE IF( lsame( norm,
'I' ) )
THEN
131 work( i ) = work( i ) + abs( a( i, j ) )
136 VALUE =
max(
VALUE, work( i ) )
138 ELSE IF( ( lsame( norm,
'F' ) ) .OR. ( lsame( norm,
'E' ) ) )
THEN
145 CALL zlassq( m, a( 1, j ), 1, scale, sum )
147 VALUE = scale*sqrt( sum )
charNDArray max(char d, const charNDArray &m)
charNDArray min(char d, const charNDArray &m)
subroutine xzlange(NORM, M, N, A, LDA, WORK, VALUE)