/home/abui...SRC/sdot.f(3)

πŸ“¦ version 3.12.0, in opensuse-leap 16.0

πŸ’… SDOT β€” the dot product bestie ✨

ok so real talk, this page is from the LAPACK BLAS library, and the file it lives in is literally:

/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/BLAS/SRC/sdot.f

like yes that's the whole path, no I'm not shortening it, it's giving "my build directory has lore" πŸŽ€


✨ SYNOPSIS ✨

Functions/Subroutines

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

SDOT β€” that's the whole vibe, she's the function, she's the moment πŸ‘‘

Function/Subroutine Documentation

here's the full signature so you can see exactly what's going on:

real function SDOT (integer n, real, dimension(*) sx, integer incx, real,
    dimension(*) sy, integer incy)

SDOT. that's her name. don't wear it out 🫢

Purpose:

!>
!>    SDOT forms the dot product of two vectors.
!>    uses unrolled loops for increments equal to one.
!>

so basically bestie takes two vectors and gives you the dot product, periodt. and when the increments are equal to one β€” 1, the iconic default-ish scenario β€” she's out here using unrolled loops because she's efficient like that πŸ”₯

Parameters

  • N β€” N is INTEGER β€” number of elements in input vector(s). like how many things we're multiplying together, ngl that matters a lot.
  • SX β€” SX is REAL array, dimension ( 1 + ( N - 1 )*abs( INCX ) ) β€” this is the first vector, and yes the dimension formula is exactly that, write it down, don't guess πŸ’–
  • INCX β€” INCX is INTEGER β€” storage spacing between elements of SX. basically how far apart the elements are chillin' in memory.
  • SY β€” SY is REAL array, dimension ( 1 + ( N - 1 )*abs( INCY ) ) β€” second vector, same energy, note that it's INCY in the formula not INCX, don't mix them up bestie πŸ’€
  • INCY β€” INCY is INTEGER β€” storage spacing between elements of SY. matching energy to INCX but for the other vector πŸ¦‹

Author

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

the whole squad showed up for this one πŸ˜­πŸ‘‘

Further Details:

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

so yeah, jack dongarra, linpack, 3/11/78. β€” that's the original author credit and date, respect the elders πŸ™ β€” and then modified 12/3/93, array(1) declarations changed to array(*) which is exactly the glow-up that happened on that date. iconic historical record, we keep it πŸŽ€

Definition at line 81 of file sdot.f.


😌 one last thing

this whole page? Generated automatically by Doxygen for LAPACK from the source code. so nobody hand-wrote this, the tooling did, and honestly it ate 🌸


✨ LAPACK, Version 3.12.0, from /home/abui...SRC/sdot.f(3) β€” that's the version and the date stamp at the bottom, and that's the whole page bestie, love you, bye πŸ’œπŸŽ€βœ¨

πŸ“¦ where this page comes from