sparse_t Derived Type

type, public :: sparse_t

type~~sparse_t~~InheritsGraph type~sparse_t sparse_t type~spvec_t spvec_t type~spvec_t->type~sparse_t rows
Help



Components

TypeVisibility AttributesNameInitial
integer, public :: N
integer, public :: M
type(spvec_t), public, dimension(:), allocatable:: rows

Type-Bound Procedures

procedure, public :: get => get_m

  • private function get_m(self, i, j) result(o)

    Arguments

    Type IntentOptional AttributesName
    class(sparse_t), intent(in) :: self
    integer, intent(in) :: i
    integer, intent(in) :: j

    Return Value real(kind=wp)

procedure, public :: set => set_m

  • private subroutine set_m(self, i, j, v)

    Arguments

    Type IntentOptional AttributesName
    class(sparse_t), intent(inout) :: self
    integer, intent(in) :: i
    integer, intent(in) :: j
    real(kind=wp), intent(in) :: v

procedure, public :: add => add_m

  • private subroutine add_m(self, i, j, v)

    Arguments

    Type IntentOptional AttributesName
    class(sparse_t), intent(inout) :: self
    integer, intent(in) :: i
    integer, intent(in) :: j
    real(kind=wp), intent(in) :: v

procedure, public :: expand

  • private subroutine expand(self, r, c, A)

    Arguments

    Type IntentOptional AttributesName
    class(sparse_t), intent(inout) :: self
    integer, intent(in), dimension(:):: r
    integer, intent(in), dimension(:):: c
    real(kind=wp), intent(in), dimension(size(r),size(c)):: A

procedure, public :: getDiagonal

  • private function getDiagonal(self) result(o)

    Arguments

    Type IntentOptional AttributesName
    class(sparse_t), intent(in) :: self

    Return Value real(kind=wp), dimension(:), allocatable

procedure, public :: toDense => toDense_m

  • private function toDense_m(self) result(o)

    Arguments

    Type IntentOptional AttributesName
    class(sparse_t), intent(in) :: self

    Return Value real(kind=wp), dimension(:,:), allocatable

procedure, public :: toText => toText_m

  • private subroutine toText_m(self, iou)

    Arguments

    Type IntentOptional AttributesName
    class(sparse_t), intent(in) :: self
    integer, intent(in) :: iou