Id_rdp Derived Type

type, public, extends(abstract_linop_rdp) :: Id_rdp

Utility type to define the Identity operator. Note that the type-bound procedures for matvec and rmatvec do not have to be defined by the user.


Type-Bound Procedures

procedure, public, pass(self) :: matvec => id_matvec_rdp

  • private subroutine id_matvec_rdp(self, vec_in, vec_out)

    Arguments

    Type IntentOptional Attributes Name
    class(Id_rdp), intent(in) :: self
    class(abstract_vector_rdp), intent(in) :: vec_in
    class(abstract_vector_rdp), intent(out) :: vec_out

procedure, public, pass(self) :: rmatvec => id_matvec_rdp

  • private subroutine id_matvec_rdp(self, vec_in, vec_out)

    Arguments

    Type IntentOptional Attributes Name
    class(Id_rdp), intent(in) :: self
    class(abstract_vector_rdp), intent(in) :: vec_in
    class(abstract_vector_rdp), intent(out) :: vec_out