COO_type Derived Type

type, public, extends(sparse_type) :: COO_type


Components

Type Visibility Attributes Name Initial
integer(kind=ilp), public, allocatable :: index(:,:)

Matrix coordinates index(2,nnz)

logical, public :: is_sorted = .false.

whether the matrix is sorted or not

integer(kind=ilp), public :: ncols = 0

number of columns

integer(kind=ilp), public :: nnz = 0

number of non-zero values

integer(kind=ilp), public :: nrows = 0

number of rows

integer, public :: storage = sparse_full

assumed storage symmetry


Type-Bound Procedures

procedure, public :: malloc => malloc_coo

  • private subroutine malloc_coo(self, num_rows, num_cols, nnz)

    Arguments

    Type IntentOptional Attributes Name
    class(COO_type) :: self
    integer(kind=ilp), intent(in) :: num_rows

    number of rows

    integer(kind=ilp), intent(in) :: num_cols

    number of columns

    integer(kind=ilp), intent(in) :: nnz

    number of non zeros