1 subroutine mattrans (m, n, ja, ia, jao, iao)
2 integer ia(m+1), iao(n+1), ja(*), jao(*)
3 c-------------------------------------------------------------------
4 c transpose a matrix stored in a, ja, ia format.
7 c m = row dimension of a.
8 c n = column dimension of a.
9 c ja =
integer array of
size nnz containing the column positions
10 c of the corresponding elements in a.
11 c ia =
integer of
size n+1. ia(k) contains the position in a, ja of
12 c the beginning of the k-th row.
14 c jao =
integer array of
size nnz containing the column indices.
15 c iao =
integer array of
size m+1 containing the
"ia" index array of
16 c the transposed matrix.
17 c--------------------------------------------------------------------
19 c count the number of elements in every column of a and row of ao
31 c find addresses of new first elements..
34 4 iao(i+1) = iao(i) + iao(i+1)
35 c now
do the actual copying.
50 c---------------
end of
mattrans ---------------------------------
subroutine mattrans(m, n, ja, ia, jao, iao)
static size_t size(T const &object)
Returns size in byte necessary to pack datatype.