pic_cdotc Function

private function pic_cdotc(x, y) result(res)

interface for single precision complex dot product

Arguments

Type IntentOptional Attributes Name
complex(kind=sp), intent(in) :: x(:)
complex(kind=sp), intent(in) :: y(:)

Return Value complex(kind=sp)


Calls

proc~~pic_cdotc~~CallsGraph proc~pic_cdotc pic_cdotc interface~blas_dot blas_dot proc~pic_cdotc->interface~blas_dot

Called by

proc~~pic_cdotc~~CalledByGraph proc~pic_cdotc pic_cdotc interface~pic_dot pic_dot interface~pic_dot->proc~pic_cdotc

Variables

Type Visibility Attributes Name Initial
integer(kind=default_int), private :: incx
integer(kind=default_int), private :: incy
integer(kind=default_int), private :: n

Source Code

   function pic_cdotc(x, y) result(res)
      !! interface for single precision complex dot product
      complex(sp), intent(in) :: x(:)
      complex(sp), intent(in) :: y(:)
      complex(sp) :: res
      integer(default_int) :: n, incx, incy
      n = size(x)
      incx = 1
      incy = 1
      res = blas_dot(n, x, incx, y, incy)
   end function pic_cdotc