/home/abui...SRC/sdot.f(3)
π 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 ofSX. 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'sINCYin the formula notINCX, don't mix them up bestie πINCYβINCY is INTEGERβ storage spacing between elements ofSY. matching energy toINCXbut 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
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms