Go to the source code of this file.
|
subroutine | amux (n, x, y, a, ja, ia) |
|
subroutine | dvperm (n, x, perm) |
|
subroutine | cperm (nrow, a, ja, ia, ao, jao, iao, perm, job) |
|
subroutine | rperm (nrow, a, ja, ia, ao, jao, iao, perm, job) |
|
subroutine | dperm (nrow, a, ja, ia, ao, jao, iao, perm, qperm, job) |
|
◆ amux()
subroutine amux |
( |
integer ( kind = 4 ) |
n, |
|
|
real ( kind = 8 ), dimension(*) |
x, |
|
|
real ( kind = 8 ), dimension(n) |
y, |
|
|
real ( kind = 8 ), dimension(*) |
a, |
|
|
integer ( kind = 4 ), dimension(*) |
ja, |
|
|
integer ( kind = 4 ), dimension(*) |
ia |
|
) |
| |
Definition at line 1 of file sparsekit.f90.
34 integer ( kind = 4 ) n
36 real ( kind = 8 ) a(*)
37 integer ( kind = 4 ) i
38 integer ( kind = 4 ) ia(*)
39 integer ( kind = 4 ) ja(*)
40 integer ( kind = 4 ) k
42 real ( kind = 8 ) x(*)
43 real ( kind = 8 ) y(n)
50 do k = ia(i), ia(i+1)-1
51 t = t + a(k) * x(ja(k))
◆ cperm()
subroutine cperm |
( |
integer ( kind = 4 ) |
nrow, |
|
|
real ( kind = 8 ), dimension(*) |
a, |
|
|
integer ( kind = 4 ), dimension(*) |
ja, |
|
|
integer ( kind = 4 ), dimension(nrow+1) |
ia, |
|
|
real ( kind = 8 ), dimension(*) |
ao, |
|
|
integer ( kind = 4 ), dimension(*) |
jao, |
|
|
integer ( kind = 4 ), dimension(nrow+1) |
iao, |
|
|
integer ( kind = 4 ), dimension(*) |
perm, |
|
|
integer ( kind = 4 ) |
job |
|
) |
| |
Definition at line 163 of file sparsekit.f90.
215 integer ( kind = 4 ) nrow
217 real ( kind = 8 ) a(*)
218 real ( kind = 8 ) ao(*)
219 integer ( kind = 4 ) ia(nrow+1)
220 integer ( kind = 4 ) iao(nrow+1)
221 integer ( kind = 4 ) ja(*)
222 integer ( kind = 4 ) jao(*)
223 integer ( kind = 4 ) job
224 integer ( kind = 4 ) k
225 integer ( kind = 4 ) nnz
226 integer ( kind = 4 ) perm(*)
242 iao(1:nrow+1) = ia(1:nrow+1)
◆ dperm()
subroutine dperm |
( |
integer ( kind = 4 ) |
nrow, |
|
|
real ( kind = 8 ), dimension(*) |
a, |
|
|
integer ( kind = 4 ), dimension(*) |
ja, |
|
|
integer ( kind = 4 ), dimension(nrow+1) |
ia, |
|
|
real ( kind = 8 ), dimension(*) |
ao, |
|
|
integer ( kind = 4 ), dimension(*) |
jao, |
|
|
integer ( kind = 4 ), dimension(nrow+1) |
iao, |
|
|
integer ( kind = 4 ), dimension(nrow) |
perm, |
|
|
integer ( kind = 4 ), dimension(nrow) |
qperm, |
|
|
integer ( kind = 4 ) |
job |
|
) |
| |
Definition at line 353 of file sparsekit.f90.
415 integer ( kind = 4 ) nrow
417 real ( kind = 8 ) a(*)
418 real ( kind = 8 ) ao(*)
419 integer ( kind = 4 ) ia(nrow+1)
420 integer ( kind = 4 ) iao(nrow+1)
421 integer ( kind = 4 ) ja(*)
422 integer ( kind = 4 ) jao(*)
423 integer ( kind = 4 ) job
424 integer ( kind = 4 ) locjob
425 integer ( kind = 4 ) perm(nrow)
426 integer ( kind = 4 ) qperm(nrow)
430 locjob = mod( job, 2 )
434 call rperm ( nrow, a, ja, ia, ao, jao, iao, perm, locjob )
441 call cperm ( nrow, ao, jao, iao, ao, jao, iao, perm, locjob )
443 call cperm ( nrow, ao, jao, iao, ao, jao, iao, qperm, locjob )
subroutine rperm(nrow, a, ja, ia, ao, jao, iao, perm, job)
subroutine cperm(nrow, a, ja, ia, ao, jao, iao, perm, job)
◆ dvperm()
subroutine dvperm |
( |
integer ( kind = 4 ) |
n, |
|
|
real ( kind = 8 ), dimension(n) |
x, |
|
|
integer ( kind = 4 ), dimension(n) |
perm |
|
) |
| |
Definition at line 61 of file sparsekit.f90.
93 integer ( kind = 4 ) n
95 integer ( kind = 4 ) ii
96 integer ( kind = 4 ) init
97 integer ( kind = 4 ) k
98 integer ( kind = 4 ) next
99 integer ( kind = 4 ) perm(n)
100 real ( kind = 8 ) tmp
101 real ( kind = 8 ) tmp1
102 real ( kind = 8 ) x(n)
129 perm(1:n) = -perm(1:n)
148 perm(1:n) = -perm(1:n)
152 if ( perm(
init) < 0 )
then
◆ rperm()
subroutine rperm |
( |
integer ( kind = 4 ) |
nrow, |
|
|
real ( kind = 8 ), dimension(*) |
a, |
|
|
integer ( kind = 4 ), dimension(*) |
ja, |
|
|
integer ( kind = 4 ), dimension(nrow+1) |
ia, |
|
|
real ( kind = 8 ), dimension(*) |
ao, |
|
|
integer ( kind = 4 ), dimension(*) |
jao, |
|
|
integer ( kind = 4 ), dimension(nrow+1) |
iao, |
|
|
integer ( kind = 4 ), dimension(nrow) |
perm, |
|
|
integer ( kind = 4 ) |
job |
|
) |
| |
Definition at line 249 of file sparsekit.f90.
299 integer ( kind = 4 ) nrow
301 real ( kind = 8 ) a(*)
302 real ( kind = 8 ) ao(*)
303 integer ( kind = 4 ) i
304 integer ( kind = 4 ) ia(nrow+1)
305 integer ( kind = 4 ) iao(nrow+1)
306 integer ( kind = 4 ) ii
307 integer ( kind = 4 ) j
308 integer ( kind = 4 ) ja(*)
309 integer ( kind = 4 ) jao(*)
310 integer ( kind = 4 ) job
311 integer ( kind = 4 ) k
312 integer ( kind = 4 ) ko
313 integer ( kind = 4 ) perm(nrow)
316 values = ( job == 1 )
322 iao(i+1) = ia(j+1) - ia(j)
329 iao(j+1) = iao(j+1) + iao(j)
340 do k = ia(ii), ia(ii+1)-1