cast_as_ndarray Function

public function cast_as_ndarray(encap_polymorph) result(ndarray_obj)

Arguments

Type IntentOptional AttributesName
class(pf_encap_t), intent(in), target:: encap_polymorph

Return Value type(ndarray), pointer


Called by

proc~~cast_as_ndarray~~CalledByGraph proc~cast_as_ndarray cast_as_ndarray proc~ndarray_destroy ndarray_destroy proc~ndarray_destroy->proc~cast_as_ndarray

Contents

Source Code


Source Code

  function cast_as_ndarray(encap_polymorph) result(ndarray_obj)
    class(pf_encap_t), intent(in), target :: encap_polymorph
    type(ndarray), pointer :: ndarray_obj
    
    select type(encap_polymorph)
    type is (ndarray)
       ndarray_obj => encap_polymorph
    end select
  end function cast_as_ndarray