Contains module procedures associated with the basic coo sparsity pattern class
Return true if all elements with indices (row,column) are present in sparsity pattern
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(COOSparsityPattern), | intent(in) | :: | this | |||
integer(kind=ik), | intent(in), | dimension(:) | :: | row |
Row indices |
|
integer(kind=ik), | intent(in), | dimension(:) | :: | column |
Column indices |
Return indices with given values of (row,column)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(COOSparsityPattern), | intent(in) | :: | this | |||
integer(kind=ik), | intent(in), | dimension(:) | :: | row |
Row index |
|
integer(kind=ik), | intent(in), | dimension(:) | :: | column |
Column index |
COO sparsity pattern initialization routine
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(COOSparsityPattern), | intent(inout) | :: | this | |||
integer(kind=ik), | intent(in) | :: | numRows |
Matrix number of rows |
||
integer(kind=ik), | intent(in) | :: | numCols |
Matrix number of columns |
||
integer(kind=ik), | intent(in), | optional | :: | bufferSize |
Preallocated rolling buffer size |
|
integer(kind=ik), | intent(in), | optional | :: | rowOffset |
Row offset for distributed arrays |
Add entry if not already present
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(COOSparsityPattern), | intent(inout) | :: | this | |||
integer(kind=ik), | intent(in) | :: | row |
Row index |
||
integer(kind=ik), | intent(in) | :: | column |
Column Index |
Add entries from existing pattern that are not already present
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(COOSparsityPattern), | intent(inout) | :: | this | |||
type(COOSparsityPattern), | intent(in) | :: | pattern |
Pattern to add to this pattern |
||
integer(kind=ik), | intent(in), | dimension(:) | :: | rowOffset |
Array by which to offset pattern row indices before adding |
|
integer(kind=ik), | intent(in), | dimension(:) | :: | colOffset |
Array by which to offset pattern column indices before adding |