2 SUBROUTINE CNTNZU
(N
, IA
, JA
, NZSUT
)
3 INTEGER N
, IA
, JA
, NZSUT
5 C-----------------------------------------------------------------------
6 C This routine counts the number of nonzero elements in the strict
7 C upper triangle of the matrix M + M(transpose), where the sparsity
8 C structure of M is given by pointer arrays IA and JA.
9 C This is needed to compute the storage requirements for the
10 C sparse matrix reordering operation in ODRV.
11 C-----------------------------------------------------------------------
12 INTEGER II
, JJ
, J
, JMIN
, JMAX
, K
, KMIN
, KMAX
, NUM
18 IF (JMIN
.GT
. JMAX
) GO TO 50
20 IF (JA
(J
) - II
) 10, 40, 30
24 IF (KMIN
.GT
. KMAX
) GO TO 30
26 IF (JA
(K
) .EQ
. II
) GO TO 40
33 C----------------------- End of Subroutine CNTNZU ----------------------