Developer Reference for Intel® oneAPI Math Kernel Library for C
?sdot
Computes a vector-vector dot product with double precision.
Syntax
float cblas_sdsdot(const MKL_INT n, const float sb, const float *sx, const MKL_INT incx,
const float *sy, const MKL_INT incy);
double cblas_dsdot(const MKL_INT n, const float *sx, const MKL_INT incx, const float *sy,
const MKL_INT incy);
Include Files
mkl.h
Description
The cblas_?sdot routines compute the inner product of two vectors with double precision. Both routines use double precision accumulation of the intermediate results, but the cblas_sdsdot routine outputs the final result in single precision, whereas the cblas_dsdot routine outputs the double precision result. The function cblas_sdsdot also adds scalar value sb to the inner product.
Input Parameters
- n
-
Specifies the number of elements in the input vectors sx and sy.
- sb
-
Single precision scalar to be added to inner product (for the function cblas_sdsdot only).
- sx
-
Array, size at least 1 + (n - 1) * abs(incx).
- incx
-
Specifies the increment for the elements of sx.
- sy
-
Array, size at least 1 + (n - 1) * abs(incy).
- incy
-
Specifies the increment for the elements of sy.
Return Values
The result of the dot product of sx and sy (with sb added for cblas_sdsdot ), if n is positive. Otherwise, returns sb for cblas_sdsdot and 0 for cblas_dsdot.
BLAS 95 Interface Notes
There exist FORTRAN 77 and FORTRAN 95 interfaces for this routine. See the Intel® oneMKL Fortran Developer Reference for details.