BLAS/SRC/sdsdot.f(3)
π BLAS/SRC/sdsdot.f π
okay bestie, we're in the LAPACK BLAS section and this page is literally all about BLAS/SRC/sdsdot.f β one tiny file, one very cute function, and she's the main character of this whole doc. pull up a chair π«Ά
β¨ SYNOPSIS β¨
Functions/Subroutines
real function sdsdot (n, sb, sx, incx, sy, incy)
SDSDOTβ that's her. that's the girl. π
π Function/Subroutine Documentation π
real function sdsdot
real function sdsdot (integer n, real sb, real, dimension(*) sx, integer
incx, real, dimension(*) sy, integer incy)
SDSDOT π
πΈ Purpose πΈ
so what does she DO? she computes the inner product of two vectors with extended precision accumulation. like, she's doing the math in double precision and handing you back a single precision result. no cap, that's the whole vibe.
- Returns S.P. result with dot product accumulated in D.P.
- The formula, verbatim, because we do NOT paraphrase math:
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.
so cute, so precise, so iconic β¨
π§ Parameters π§
NβN is INTEGER. it's the number of elements in the input vector(s). the headcount bestie πSBβSB is REAL. a single precision scalar that gets added to the inner product. she's the little bonus sprinkle on top πSXβSX is REAL array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). single precision vector withNelements. she's bringing the numbers β¨INCXβINCX is INTEGER. the storage spacing between elements ofSX. think of it as how far apart the girls are standing in the array πSYβSY is REAL array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). single precision vector withNelements. (yes, the dimension line saysINCXright there, we are reading it exactly as it is, no editing on my watch π)INCYβINCY is INTEGER. the storage spacing between elements ofSY. same energy asINCX, different letter π¦
π 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.
the whole squad. legends only π₯
π 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)
okay this is the glow-up timeline and it is LONG. she's been evolving since 1979, we love a longevity queen π
791001β DATE WRITTEN890531β Changed all specific intrinsics to generic. (WRB)890831β Modified array declarations. (WRB)890831β REVISION DATE from Version 3.2891214β Prologue converted to Version 4.0 format. (BAB)920310β Corrected definition ofLXin DESCRIPTION. (WRB)920501β Reformatted the REFERENCES section. (WRB)070118β Reformat to LAPACK coding style
ngl the fact that there are TWO entries dated 890831? iconic. we do not question the archive, we simply respect it π
π Definition at line 112 of file sdsdot.f. π
ποΈ Author ποΈ
Generated automatically by Doxygen for LAPACK from the source code. (yes the page has an Author section twice β once for the humans, once for the robot. balance π)
and that's the whole page, bestie!! you made it to the very end, so here's the cute sign-off: this was Version 3.12.0, dated Tue Nov 28 2023 12:08:41, and it belongs to the BLAS/SRC/sdsdot.f(3) page of LAPACK. go forth and dot those products, you absolute genius ππβ¨
π¦ where this page comes from
- centos-stream 10: blas 3.12.0-7.el10 Β· BSD-3-Clause-Open-MPI
- fedora 43: blas 3.12.0-10.fc43 Β· BSD-3-Clause-Open-MPI
- fedora 43: blas 3.12.0-10.fc43 Β· BSD-3-Clause-Open-MPI
- fedora 44: blas 3.12.0-11.fc44 Β· BSD-3-Clause-Open-MPI
- fedora 44: blas 3.12.0-11.fc44 Β· BSD-3-Clause-Open-MPI
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms