Sparse row matrix representation
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
logical, | public | :: | userDefined | = | .false. |
True only if user explicitly sets it to true |
|
integer(kind=ik), | public, | allocatable, dimension(:) | :: | rowIndex |
Row indices of each sparse row vector |
||
type(IntArray), | public, | allocatable, dimension(:) | :: | columnVector |
Arrays of column indices for each row |
||
type(RealArray), | public, | allocatable, dimension(:) | :: | values |
Values associated with each sparse row vector |
Getter for userDefined
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Object), | intent(in) | :: | this |
Set userDefined to .true.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Object), | intent(inout) | :: | this |
Set userDefined to .false.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Object), | intent(inout) | :: | this |
Add sparse row vector to data Object and initialize its values to 0, unless value vector is supplied
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(SparseRowData), | intent(inout) | :: | this | |||
integer(kind=ik), | intent(in) | :: | rowIndex |
Row index of added vector |
||
integer(kind=ik), | intent(in), | dimension(:) | :: | columnIndices |
Column indices of nonzeros in row |
|
real(kind=rk), | intent(in), | optional, | dimension(:) | :: | values |
Values of nonzeros in row |
Sparse row data Object initialization routine. If indices are supplied initializes values to 0.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(SparseRowData), | intent(inout) | :: | this | |||
integer(kind=ik), | intent(in), | optional, | dimension(:) | :: | rowIndices |
Row indices of each sparse row vector |
type(IntArray), | intent(in), | optional, | dimension(:) | :: | colVectors |
Arrays of column indices for each row |