A datatype for storing a local, complex CSR matrix.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | DIMENSION(:), ALLOCATABLE | :: | outer_index | Outer indices |
||
integer, | public, | DIMENSION(:), ALLOCATABLE | :: | inner_index | Inner indices |
||
complex(kind=NTCOMPLEX), | public, | DIMENSION(:), ALLOCATABLE | :: | values | Values |
||
integer, | public | :: | rows | Matrix dimension: rows |
|||
integer, | public | :: | columns | Matrix dimension: columns |
Create a sparse matrix with a certain number of columns and rows. Will allocate storage for the outer values, nothing else unless you set zero_in to true.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | rows | The number of matrix rows. |
||
integer, | intent(in) | :: | columns | The number of matrix columns. |
||
logical, | intent(in), | optional | :: | zero_in | Whether to set the matrix to zero. |
The matrix to construct.
Create a sparse matrix by reading in a matrix market file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | file_name | Name of the file. |
The matrix being constructed.
Construct a sparse matrix from a \b SORTED triplet list. The triplet list must be sorted to efficiently fill in the matrix. This constructor assumes \b you have already sorted the triplet list.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(TripletList_c), | intent(in) | :: | triplet_list | A list of triplet values. They must be sorted. |
||
integer, | intent(in) | :: | rows | Number of matrix rows |
||
integer, | intent(in) | :: | columns | Number of matrix columns |
The matrix being constructed