BLAS/SRC/saxpy.f(3)
π BLAS/SRC/saxpy.f(3) π
okay so bestie, this one's from the Library Functions Manual β it's saxpy.f, a BLAS girlie, and she is literally the moment. like she does one tiny thing and she does it flawlessly. let's get into it β¨
πΈ NAME πΈ
BLAS/SRC/saxpy.f β that's the whole name, she's not doing a long intro, she's booked and busy π
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine saxpy (n, sa, sx, incx, sy, incy)β SAXPY, the icon herself π
π Function/Subroutine Documentation π
subroutine saxpy (integer n, real sa, real, dimension(*) sx, integer incx,
real, dimension(*) sy, integer incy)
SAXPY. no cap, that's her name, that's her whole brand π«Ά
β¨ Purpose β¨
!>!> SAXPY constant times a vector plus a vector.!> uses unrolled loops for increments equal to one.!>
so basically: constant times a vector, plus a vector. classic. and when the increments are equal to one she busts out the unrolled loops β highkey showing off, and honestly? she's earned it π₯
π Parameters π
N
!> N is INTEGER!> number of elements in input vector(s)!>
the count. how many elements are in the input vector(s). simple as that π
SA
!> SA is REAL!> On entry, SA specifies the scalar alpha.!>
on entry, SA specifies the scalar alpha β she's the multiplier, main character energy fr fr β¨
SX
!> SX is REAL array, dimension ( 1 + ( N - 1 )*abs( INCX ) )!>
a REAL array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). memorise the formula, bestie, the exam loves it π
INCX
!> INCX is INTEGER!> storage spacing between elements of SX!>
INTEGER β the storage spacing between elements of SX. how much she skips between each one πΊ
SY
!> SY is REAL array, dimension ( 1 + ( N - 1 )*abs( INCY ) )!>
REAL array, dimension ( 1 + ( N - 1 )*abs( INCY ) ). note the INCY in there, don't mix her up with SX's formula π
INCY
!> INCY is INTEGER!> storage spacing between elements of SY!>
INTEGER, the storage spacing between elements of SY. twin of INCX but make it y-axis π«
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
four whole institutions, they all showed up, we love a collaborative slay π
π« Further Details π«
!>!> jack dongarra, linpack, 3/11/78.!> modified 12/3/93, array(1) declarations changed to array(*)!>
ok so the lore: jack dongarra, linpack, 3/11/78 β she's been iconic since the seventies, we stan a legacy queen. then modified 12/3/93, and the array(1) declarations got changed to array(*). glow-up complete π
Definition at line 88 of file saxpy.f. go look, she's right there π
πΈ Author πΈ
Generated automatically by Doxygen for LAPACK from the source code. not me being autogenerated, she's literally built different π€π
okay that's the whole page bestie, every single detail intact, nothing skipped, we ate and left no crumbs π
later, and remember: constant times a vector plus a vector, unrolled loops when increments equal one β iykyk π
β with love from LAPACK, Version 3.12.0 πβ (that's the source and version, and BLAS/SRC/saxpy.f(3) is the page, mwah π)
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms