Describe a square boolean sparse matrix n x n.
Indices of non-zero elements in the i-th row are contained in
the array ci(ri(i):ri(i+1)).
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer(kind=ip), | public | :: | n |
Dimension of the matrix |
|||
integer(kind=ip), | public, | allocatable | :: | ri(:) |
Row index vector, always dimensioned n+1 |
||
integer(kind=ip), | public, | allocatable | :: | ci(:) |
Column index vector, dimension number of non-zero elements |
type yale_sparse
!! Describe a square boolean sparse matrix n x n.
!! Indices of non-zero elements in the i-th row are contained in
!! the array ci(ri(i):ri(i+1)).
integer(ip) :: n
!! Dimension of the matrix
integer(ip), allocatable :: ri(:)
!! Row index vector, always dimensioned n+1
integer(ip), allocatable :: ci(:)
!! Column index vector, dimension number of non-zero elements
end type yale_sparse