BLAS/SRC/daxpy.f(3)

✨ BLAS/SRC/daxpy.f ✨

okay bestie, gather round, because we're about to talk about the little routine that could: daxpy, straight out of the BLAS folder in LAPACK. no cap, this one's a classic. πŸŽ€


🌸 SYNOPSIS 🌸

Functions/Subroutines

  • subroutine daxpy (n, da, dx, incx, dy, incy) β€” the whole vibe, in one line. it's giving DAXPY. πŸ’…

πŸ’– Function/Subroutine Documentation πŸ’–

πŸ¦‹ subroutine daxpy (integer n, double precision da, double precision, dimension(*) dx, integer incx, double precision, dimension(*) dy, integer incy)

DAXPY πŸ‘‘

🎯 Purpose:

DAXPY does a constant times a vector plus a vector. literally the y = aΒ·x + y moment of your dreams, and it uses unrolled loops for increments equal to one. yes ma'am, it's optimizing. πŸ”₯


✨ Parameters ✨

  • N β€” N is INTEGER, the number of elements in the input vector(s). it's the count, the headcount, the how-many-besties-are-in-this-vector. πŸ’œ
  • DA β€” DA is DOUBLE PRECISION. on entry, DA specifies the scalar alpha. this is the constant, the multiplier, the main character of the whole operation. πŸ‘‘
  • DX β€” DX is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). that's the input vector, x, and yes the dimension formula is exactly that, character for character, no notes. 🌸
  • INCX β€” INCX is INTEGER, the storage spacing between elements of DX. it's how far apart the x-besties are standing from each other. πŸ¦‹
  • DY β€” DY is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCY ) ). the other input vector, y, and the dimension formula stays exactly as written. ✨
  • INCY β€” INCY is INTEGER, the storage spacing between elements of DY. same deal as INCX, but for y. matching energy, fr fr. πŸ’–

πŸ‘‘ Author

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

the whole squad. iconic. 🫢


🧚 Further Details:

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

look at that history. 3/11/78?? the longevity. the legacy. and then a little glow-up on 12/3/93 where the array(1) declarations got changed to array(*). ate and left no crumbs. πŸ’€


πŸ“Œ Definition at line 88 of file daxpy.f. yes, line 88. go look. i'll wait. πŸ™ˆ

🌈 Author (yes, again)

Generated automatically by Doxygen for LAPACK from the source code. not me being auto-generated and still serving looks. πŸ€–βœ¨


Version 3.12.0 Β· Tue Nov 28 2023 12:08:41 Β· BLAS/SRC/daxpy.f(3)

and that's the whole page, bestie πŸ’… ty for coming to my ted talk, go multiply a scalar by a vector, slay, periodt. πŸŽ€πŸ’–πŸ¦‹