9 SUBROUTINE xclange ( 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
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 classq( m, a( 1, j ), 1, scale, sum )
147 VALUE = scale*
sqrt( sum )
subroutine xclange(NORM, M, N, A, LDA, WORK, VALUE)
charNDArray max(char d, const charNDArray &m)
octave_value sqrt(void) const
charNDArray min(char d, const charNDArray &m)