BLAS/SRC/sdot.f(3)

πŸ’– NAME πŸ’–

BLAS/SRC/sdot.f β€” bestie, this is where SDOT lives, and SDOT is the little function that could 🫢


✨ SYNOPSIS ✨

Functions/Subroutines

real function sdot (n, sx, incx, sy, incy)
    SDOT

okay so it's literally just one function, no drama, no entourage, just vibes πŸ‘‘


🌸 Function/Subroutine Documentation 🌸

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's giving math but make it fashion ✨ and lowkey the tea is: it uses unrolled loops for increments equal to one. so if your spacing is 1, it goes fast. periodt πŸ’…

πŸ¦‹ Parameters

  • N β€” N is INTEGER, the number of elements in your input vector(s). how many numbers are we vibing with, bestie πŸ”’
  • SX β€” SX is REAL array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). it's a REAL array and that's exactly how big it needs to be, no cap πŸ“
  • INCX β€” INCX is INTEGER, the storage spacing between elements of SX. basically how far apart the lil guys are standing in line πŸšΆβ™€οΈπŸšΆβ™€οΈπŸšΆβ™€οΈ
  • SY β€” SY is REAL array, dimension ( 1 + ( N - 1 )*abs( INCY ) ). also REAL, also array, also got a size formula, iconic πŸ’–
  • INCY β€” INCY is INTEGER, the storage spacing between elements of SY. same energy as INCX but for the other vector 🧚

πŸ‘‘ Author

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

shoutout to the whole committee, they ate and left no crumbs πŸ“

πŸ’œ Further Details:

jack dongarra, linpack, 3/11/78.
modified 12/3/93, array(1) declarations changed to array(*)

look at the history bestie, 3/11/78!! ancient lore fr fr. and then 12/3/93 came through and changed the array(1) declarations to array(*). glow up moment 🌈

⭐ Definition at line 81 of file sdot.f.

ngl that's the whole function right there. line 81. go look. iykyk πŸ‘€

🫢 Author 🫢

Generated automatically by Doxygen for LAPACK from the source code. not a human writing this one, it's a whole robot doing its thing πŸ€–βœ¨


Version 3.12.0 Β· Tue Nov 28 2023 12:08:41 Β· BLAS/SRC/sdot.f(3)

and that's the whole page, bestie πŸ’… mwah, go compute a dot product, you're gonna slay πŸ˜­πŸ’–