Id_rsp Derived Type

type, public, extends(abstract_linop_rsp) :: Id_rsp

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_rsp

  • private subroutine id_matvec_rsp(self, vec_in, vec_out)

    Arguments

    Type IntentOptional Attributes Name
    class(Id_rsp), intent(in) :: self
    class(abstract_vector_rsp), intent(in) :: vec_in
    class(abstract_vector_rsp), intent(out) :: vec_out

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

  • private subroutine id_matvec_rsp(self, vec_in, vec_out)

    Arguments

    Type IntentOptional Attributes Name
    class(Id_rsp), intent(in) :: self
    class(abstract_vector_rsp), intent(in) :: vec_in
    class(abstract_vector_rsp), intent(out) :: vec_out