| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer(kind=int32), | public, | allocatable | :: | ind(:) | |||
| integer(kind=int32), | public | :: | nnz | ||||
| integer(kind=int32), | public | :: | num_ptr | ||||
| integer(kind=int32), | public | :: | num_row | ||||
| integer(kind=int32), | public, | allocatable | :: | ptr(:) | |||
| real(kind=real64), | public, | allocatable | :: | val(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(type_crs), | intent(inout) | :: | self |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(type_crs), | intent(inout) | :: | self | |||
| integer(kind=int32), | intent(in) | :: | num_nodes | |||
| integer(kind=int32), | intent(in), | optional | :: | row(:) | ||
| integer(kind=int32), | intent(in), | optional | :: | col(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(type_crs), | intent(inout) | :: | self | |||
| real(kind=real64), | intent(in) | :: | value |
type, extends(abst_matrix) :: type_crs integer(int32) :: nnz ! number of non-zero elements integer(int32) :: num_row ! number of rows integer(int32) :: num_ptr ! size of ptr (num_row+1 entries) integer(int32), allocatable :: ptr(:) ! pointers to row starts (1-based) integer(int32), allocatable :: ind(:) ! column indices of non-zeros real(real64), allocatable :: val(:) ! non-zero values contains procedure, public, pass(self) :: initialize => initialize_type_crs !& procedure, public, pass(self) :: find => find_crs !& procedure, public, pass(self) :: set => set_crs !& procedure, public, pass(self) :: set_all => set_all_crs !& procedure, public, pass(self) :: zero => zero_crs !& procedure, public, pass(self) :: add => add_crs !& procedure, public, pass(self) :: destroy => destroy_crs !& end type type_crs