vec_dp_get_unchecked Function

private pure function vec_dp_get_unchecked(self, index) result(value)

Element index with no bounds check, for hot loops that have already established the range. Reading outside 1:size() is undefined.

Type Bound

vector_dp_t

Arguments

Type IntentOptional Attributes Name
class(vector_dp_t), intent(in) :: self
integer(kind=default_int), intent(in) :: index

Return Value real(kind=dp)


Source Code

   pure function vec_dp_get_unchecked(self, index) result(value)
      !! Element `index` with no bounds check, for hot loops that have already
      !! established the range. Reading outside `1:size()` is undefined.
      class(vector_dp_t), intent(in) :: self
      integer(default_int), intent(in) :: index
      real(dp) :: value

      value = self%items(index)
   end function vec_dp_get_unchecked