Id_cdp Derived Type

type, public, extends(abstract_linop_cdp) :: Id_cdp

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_cdp

  • private subroutine id_matvec_cdp(self, vec_in, vec_out)

    Arguments

    Type IntentOptional Attributes Name
    class(Id_cdp), intent(in) :: self
    class(abstract_vector_cdp), intent(in) :: vec_in
    class(abstract_vector_cdp), intent(out) :: vec_out

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

  • private subroutine id_matvec_cdp(self, vec_in, vec_out)

    Arguments

    Type IntentOptional Attributes Name
    class(Id_cdp), intent(in) :: self
    class(abstract_vector_cdp), intent(in) :: vec_in
    class(abstract_vector_cdp), intent(out) :: vec_out