BLAS/SRC/saxpy.f(3)
π BLAS/SRC/saxpy.f(3) β the LAPACK manual, bestie edition π
okay so this is a page from the LAPACK manual (that's section 3, the library-functions girlies) and it's all about one lil file: BLAS/SRC/saxpy.f. she's small, she's iconic, she does exactly one thing and does it flawlessly. no cap. β¨
πΈ NAME πΈ
BLAS/SRC/saxpy.f β that's the whole name, that's her, that's the file π
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine saxpy (n, sa, sx, incx, sy, incy)β aka SAXPY, the main character π
π Function/Subroutine Documentation π
subroutine saxpy (integer n, real sa, real, dimension(*) sx, integer incx, real, dimension(*) sy, integer incy)
SAXPY β say it with me now π«Ά
β¨ Purpose β¨
so basically: SAXPY constant times a vector plus a vector.
and here's the lil flex β it uses unrolled loops for increments equal to one. speed demon behaviour, we love to see it π₯
π Parameters π
NβNisINTEGER. it's the number of elements in input vector(s). so like, how many numbers we're working with, bestie.SAβSAisREAL. On entry,SAspecifies the scalar alpha. yes she's that alpha πSXβSXisREALarray, dimension( 1 + ( N - 1 )*abs( INCX ) ). the vector that's getting scaled, gorgeous, stunning.INCXβINCXisINTEGER. it's the storage spacing between elements ofSX. think of it like... how far apart the elements are sitting in memory. personal space, but for floats π§SYβSYisREALarray, dimension( 1 + ( N - 1 )*abs( INCY ) ). the vector that gets stuff added to it. she's receiving today πINCYβINCYisINTEGER. the storage spacing between elements ofSY. same vibe asINCXbut for the other girl.
ngl the dimension formulas are giving math but they're literally just saying "enough room for N elements spaced INCX (or INCY) apart" π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
the whole squad showed up fr fr π
π Further Details π
jack dongarra, linpack, 3/11/78.
modified 12/3/93, array(1) declarations changed to array(*)
so yeah, jack dongarra, linpack, dated 3/11/78 β an elder, a legend, the blueprint. then it got modified 12/3/93 when the array(1) declarations changed to array(*). glow-up era, we respect it β
Definition at line 88 of file saxpy.f. that's the exact spot, line 88, go look, i'll wait π
π« Author π«
Generated automatically by Doxygen for LAPACK from the source code.
not a human writing this one, it's the Doxygen bot doing its lil thing π€β¨ auto-generated and still serving looks.
and that's the whole page, bestie!! π«Ά this was Version 3.12.0, generated Tue Nov 28 2023 12:08:41, filed under BLAS/SRC/saxpy.f(3) β mwah, iconic, periodt ππΈπ
π¦ 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