Computes a vector-vector dot product with extended precision.
FORTRAN 77:
res = sdsdot(n, sb, sx, incx, sy, incy)
res = dsdot(n, sx, incx, sy, incy)
Fortran 95:
res = sdot(sx, sy)
res = sdot(sx, sy, sb)
The FORTRAN 77 interfaces are specified in the mkl_blas.fi include file, the Fortran 95 interfaces are specified in the blas.f90 include file, and the C interfaces are specified in the mkl_blas.h include file.
The ?sdot routines compute the inner product of two vectors with extended precision. Both routines use extended precision accumulation of the intermediate results, but the sdsdot routine outputs the final result in single precision, whereas the dsdot routine outputs the double precision result. The function sdsdot also adds scalar value sb to the inner product.
INTEGER. Specifies the number of elements in the input vectors sx and sy.
REAL. Single precision scalar to be added to inner product (for the function sdsdot only).
REAL.
Arrays, DIMENSION at least (1+(n -1)*abs(incx)) and (1+(n-1)*abs(incy)), respectively. Contain the input single precision vectors.
INTEGER. Specifies the increment for the elements of sx.
INTEGER. Specifies the increment for the elements of sy.
REAL for sdsdot
DOUBLE PRECISION for dsdot
Contains the result of the dot product of sx and sy (with sb added for sdsdot), if n is positive. Otherwise, res contains sb for sdsdot and 0 for dsdot.
Routines in Fortran 95 interface have fewer arguments in the calling sequence than their FORTRAN 77 counterparts. For general conventions applied to skip redundant or reconstructible arguments, see Fortran 95 Interface Conventions.
Specific details for the routine sdot interface are the following:
Holds the vector with the number of elements n.
Holds the vector with the number of elements n.
Note that scalar parameter sb is declared as a required parameter in Fortran 95 interface for the function sdot to distinguish between function flavors that output final result in different precision.
Copyright © 1994 - 2011, Intel Corporation. All rights reserved.