dot(3)
π dot(3) π
Library Functions Manual
okay so this is the dot-product family page, and it is lowkey iconic. The whole vibe is literally dot: x^H x and x^T x, no cap. π
β¨ NAME β¨
dot β dot: x^H x and x^T x
π¦ SYNOPSIS π¦
π Functions π
Hereβs the full lineup, bestie β every signature exactly as listed:
complex function cdotc (n, cx, incx, cy, incy)
CDOTC
complex function cdotu (n, cx, incx, cy, incy)
CDOTU
double precision function ddot (n, dx, incx, dy, incy)
DDOT
double precision function dsdot (n, sx, incx, sy, incy)
DSDOT
real function sdot (n, sx, incx, sy, incy)
SDOT
real function sdsdot (n, sb, sx, incx, sy, incy)
SDSDOT
complex *16 function zdotc (n, zx, incx, zy, incy)
ZDOTC
complex *16 function zdotu (n, zx, incx, zy, incy)
ZDOTU
π«§ Detailed Description π«§
This section is blank in the original. Literally giving empty. Moving on. π
π₯ Function Documentation π₯
πΈ cdotc πΈ
complex function cdotc (integer n, complex, dimension(*) cx, integer incx, complex, dimension(*) cy, integer incy)
CDOTC
Purpose: CDOTC forms the dot product of two complex vectors β CDOTC = X^H * Y.
Parameters
NβINTEGER; number of elements in input vector(s).CXβCOMPLEXarray, dimension( 1 + ( N - 1 )*abs( INCX ) ).INCXβINTEGER; storage spacing between elements ofCX.CYβCOMPLEXarray, dimension( 1 + ( N - 1 )*abs( INCY ) ).INCYβINTEGER; storage spacing between elements ofCY.
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Further Details:
jack dongarra, linpack, 3/11/78.
modified 12/3/93, array(1) declarations changed to array(*)
Definition at line 82 of file cdotc.f.
πΈ cdotu πΈ
complex function cdotu (integer n, complex, dimension(*) cx, integer incx, complex, dimension(*) cy, integer incy)
CDOTU
Purpose: CDOTU forms the dot product of two complex vectors β CDOTU = X^T * Y.
Parameters
NβINTEGER; number of elements in input vector(s).CXβCOMPLEXarray, dimension( 1 + ( N - 1 )*abs( INCX ) ).INCXβINTEGER; storage spacing between elements ofCX.CYβCOMPLEXarray, dimension( 1 + ( N - 1 )*abs( INCY ) ).INCYβINTEGER; storage spacing between elements ofCY.
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Further Details:
jack dongarra, linpack, 3/11/78.
modified 12/3/93, array(1) declarations changed to array(*)
Definition at line 82 of file cdotu.f.
πΈ ddot πΈ
double precision function ddot (integer n, double precision, dimension(*) dx, integer incx, double precision, dimension(*) dy, integer incy)
DDOT
Purpose: DDOT forms the dot product of two vectors. It uses unrolled loops for increments equal to one. β¨
Parameters
NβINTEGER; number of elements in input vector(s).DXβDOUBLE PRECISIONarray, dimension( 1 + ( N - 1 )*abs( INCX ) ).INCXβINTEGER; storage spacing between elements ofDX.DYβDOUBLE PRECISIONarray, dimension( 1 + ( N - 1 )*abs( INCY ) ).INCYβINTEGER; storage spacing between elements ofDY.
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Further Details:
jack dongarra, linpack, 3/11/78.
modified 12/3/93, array(1) declarations changed to array(*)
Definition at line 81 of file ddot.f.
πΈ dsdot πΈ
double precision function dsdot (integer n, real, dimension(*) sx, integer incx, real, dimension(*) sy, integer incy)
DSDOT
Purpose: Compute the inner product of two vectors with extended precision accumulation and result.
Returns D.P. dot product accumulated in D.P., for S.P. SX and SY:
DSDOT = sum for I = 0 to N-1 of SX(LX+I*INCX) * SY(LY+I*INCY),
where LX = 1 if INCX .GE. 0, else LX = 1+(1-N)*INCX, and LY is defined in a similar way using INCY.
Parameters
NβINTEGER; number of elements in input vector(s).SXβREALarray, dimension(N); single precision vector withNelements.INCXβINTEGER; storage spacing between elements ofSX.SYβREALarray, dimension(N); single precision vector withNelements.INCYβINTEGER; storage spacing between elements ofSY.
Returns
DSDOTβDOUBLE PRECISION; theDSDOTdouble precision dot product (zero ifN.LE.0).
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Further Details:
!>
References:
!>
!>
!> C. L. Lawson, R. J. Hanson, D. R. Kincaid and F. T.
!> Krogh, Basic linear algebra subprograms for Fortran
!> usage, Algorithm No. 539, Transactions on Mathematical
!> Software 5, 3 (September 1979), pp. 308-323.
!>
!> REVISION HISTORY (YYMMDD)
!>
!> 791001 DATE WRITTEN
!> 890831 Modified array declarations. (WRB)
!> 890831 REVISION DATE from Version 3.2
!> 891214 Prologue converted to Version 4.0 format. (BAB)
!> 920310 Corrected definition of LX in DESCRIPTION. (WRB)
!> 920501 Reformatted the REFERENCES section. (WRB)
!> 070118 Reformat to LAPACK style (JL)
!>
Definition at line 118 of file dsdot.f.
πΈ sdot πΈ
real function sdot (integer n, real, dimension(*) sx, integer incx, real, dimension(*) sy, integer incy)
SDOT
Purpose: SDOT forms the dot product of two vectors. It uses unrolled loops for increments equal to one. π«Ά
Parameters
NβINTEGER; number of elements in input vector(s).SXβREALarray, dimension( 1 + ( N - 1 )*abs( INCX ) ).INCXβINTEGER; storage spacing between elements ofSX.SYβREALarray, dimension( 1 + ( N - 1 )*abs( INCY ) ).INCYβINTEGER; storage spacing between elements ofSY.
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Further Details:
jack dongarra, linpack, 3/11/78.
modified 12/3/93, array(1) declarations changed to array(*)
Definition at line 81 of file sdot.f.
πΈ sdsdot πΈ
real function sdsdot (integer n, real sb, real, dimension(*) sx, integer incx, real, dimension(*) sy, integer incy)
SDSDOT
Purpose: Compute the inner product of two vectors with extended precision accumulation.
Returns S.P. result with dot product accumulated in D.P.
SDSDOT = SB + sum for I = 0 to N-1 of SX(LX+I*INCX)*SY(LY+I*INCY),
where LX = 1 if INCX .GE. 0, else LX = 1+(1-N)*INCX, and LY is defined in a similar way using INCY.
Parameters
NβINTEGER; number of elements in input vector(s).SBβREAL; single precision scalar to be added to inner product.SXβREALarray, dimension( 1 + ( N - 1 )*abs( INCX ) ); single precision vector withNelements.INCXβINTEGER; storage spacing between elements ofSX.SYβREALarray, dimension( 1 + ( N - 1 )*abs( INCX ) ); single precision vector withNelements.INCYβINTEGER; storage spacing between elements ofSY.
Author
- Lawson, C. L., (JPL), Hanson, R. J., (SNLA),
- Kincaid, D. R., (U. of Texas), Krogh, F. T., (JPL)
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Further Details:
!>
!> REFERENCES
!>
!> C. L. Lawson, R. J. Hanson, D. R. Kincaid and F. T.
!> Krogh, Basic linear algebra subprograms for Fortran
!> usage, Algorithm No. 539, Transactions on Mathematical
!> Software 5, 3 (September 1979), pp. 308-323.
!>
!> REVISION HISTORY (YYMMDD)
!>
!> 791001 DATE WRITTEN
!> 890531 Changed all specific intrinsics to generic. (WRB)
!> 890831 Modified array declarations. (WRB)
!> 890831 REVISION DATE from Version 3.2
!> 891214 Prologue converted to Version 4.0 format. (BAB)
!> 920310 Corrected definition of LX in DESCRIPTION. (WRB)
!> 920501 Reformatted the REFERENCES section. (WRB)
!> 070118 Reformat to LAPACK coding style
!>
Definition at line 112 of file sdsdot.f.
πΈ zdotc πΈ
complex*16 function zdotc (integer n, complex*16, dimension(*) zx, integer incx, complex*16, dimension(*) zy, integer incy)
ZDOTC
Purpose: ZDOTC forms the dot product of two complex vectors β ZDOTC = X^H * Y.
Parameters
NβINTEGER; number of elements in input vector(s).ZXβCOMPLEX*16array, dimension( 1 + ( N - 1 )*abs( INCX ) ).INCXINCXβ INTEGER, bestie. It's the storage spacing between the elements ofZX. like how far apart they're sitting in memory πZYβ COMPLEX*16 array, dimension( 1 + ( N - 1 )*abs( INCY ) ). the second vector, no cap π¦INCYβ INTEGER, and yep it does the exact same thing asINCXbut forZYβ storage spacing between elements ofZYβ¨
β¨ Author β¨
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Further Details: π
!>
!> jack dongarra, 3/11/78.
!> modified 12/3/93, array(1) declarations changed to array(*)
!>
shoutout to jack dongarra, 3/11/78, and the 12/3/93 glow-up where array(1) declarations got changed to array(*) β we love an evolution era π
Definition at line 82 of file zdotc.f. β that's where the whole thing lives, iykyk π
πΈ complex*16 function zdotu (integer n, complex*16, dimension(*) zx, integer incx, complex*16, dimension(*) zy, integer incy) πΈ
π ZDOTU π
Purpose:
text !> !> ZDOTU forms the dot product of two complex vectors !> ZDOTU = X^T * Y !> !>
okay so ZDOTU forms the dot product of two complex vectors, and it's literally:
ZDOTU = X^T * Y
note it's X^T β the transpose β not the conjugate transpose. that's the whole vibe difference between this one and ZDOTC, and you're gonna want to remember that, bestie π₯
π Parameters π
Nβ INTEGER, and it's the number of elements in the input vector(s). the headcount π«ΆZXβ COMPLEX*16 array, dimension( 1 + ( N - 1 )*abs( INCX ) ). first vector, main character energy πINCXβ INTEGER. storage spacing between elements ofZX, same deal as always πZYβ COMPLEX*16 array, dimension( 1 + ( N - 1 )*abs( INCY ) ). the second vector, showing up looking iconic π¦INCYβ INTEGER. storage spacing between elements ofZY. yes it's the same explanation, no I'm not sorry, it's just consistent π
β Author β
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Further Details: π
!>
!> jack dongarra, 3/11/78.
!> modified 12/3/93, array(1) declarations changed to array(*)
!>
same pedigree, same 12/3/93 modification, same legend β jack dongarra fr fr π
Definition at line 82 of file zdotu.f. β line 82 again, the universe has a sense of humor π
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
and that's the whole page!! π every bit of it was auto-generated by Doxygen for LAPACK straight from the source code β shoutout to LAPACK, Version 3.12.0, dated dot(3) (the date on this one is just "dot(3)", which is honestly such a mood). go forth and dot-product, bestie πβ¨
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms