Compressed-sparse-row (CSR) matrix format
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public | :: | ndim |
Number of rows (dimension) |
|||
| integer, | public | :: | ncol |
Number of columns |
|||
| integer, | public | :: | nnz |
Number of non-zero elements |
|||
| integer, | public, | allocatable, dimension(:) | :: | i |
i-array in CSR format, of dimension ndim+1 |
||
| integer, | public, | allocatable, dimension(:) | :: | j |
j-array in CSR format, of dimension nnz |
||
| real(kind=FP), | public, | allocatable, dimension(:) | :: | val |
val-array in CSR format, of dimension nnz |
destructor, frees memory
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(csrmat_t), | intent(inout) | :: | self |
csr matrix |
writes csr matrix to file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(csrmat_t), | intent(in) | :: | self |
csr matrix |
||
| integer, | intent(in) | :: | fgid |
file or group id number of existing Netcdf4 file |
Reads csr matrix from file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(csrmat_t), | intent(inout) | :: | self |
csr matrix |
||
| integer, | intent(in) | :: | fgid |
File or group id number of existing Netcdf4 file |
Creates a copy of the matrix
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(csrmat_t), | intent(in) | :: | self |
Matrix |
||
| type(csrmat_t), | intent(out) | :: | res |
Copy of matrix |
Exposes csrmat data through csrmat_data_t object
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(csrmat_t), | intent(in), | target | :: | self |
Instance of the type |
|
| type(csrmat_data_t), | intent(out) | :: | data_object |
Destination csrmat data object that contains the exposed data of the csrmat object. |