2 DOUBLE PRECISION FUNCTION DFNORM
(N
, A
, W
)
3 C-----------------------------------------------------------------------
4 C This function computes the norm of a full N by N matrix,
5 C stored in the array A, that is consistent with the weighted max-norm
6 C on vectors, with weights stored in the array W:
7 C DFNORM = MAX(i=1,...,N) ( W(i) * Sum(j=1,...,N) ABS(a(i,j))/W(j) )
8 C-----------------------------------------------------------------------
10 DOUBLE PRECISION A
, W
, AN
, SUM
11 DIMENSION A
(N
,N
), W
(N
)
16 10 SUM
= SUM
+ ABS
(A
(I
,J
))/W
(J
)
21 C----------------------- End of Function DFNORM ------------------------