set_coo Subroutine

private subroutine set_coo(self, row, col, value)

Type Bound

type_coo

Arguments

Type IntentOptional Attributes Name
class(type_coo), intent(inout) :: self
integer(kind=int32), intent(in) :: row
integer(kind=int32), intent(in) :: col
real(kind=real64), intent(in) :: value

Calls

proc~~set_coo~~CallsGraph proc~set_coo type_coo%set_coo proc~find_coo type_coo%find_coo proc~set_coo->proc~find_coo

Source Code

    subroutine set_coo(self, row, col, value)
        implicit none
        class(type_coo), intent(inout) :: self
        integer(int32), intent(in) :: row, col
        real(real64), intent(in) :: value

        integer(int32) :: index

        index = self%find(row, col)
        self%val(index) = value

    end subroutine set_coo