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