BLAS/SRC/sasum.f(3)

πŸ’– BLAS/SRC/sasum.f(3) πŸ’–

okay bestie, welcome to the LAPACK manual, page BLAS/SRC/sasum.f(3) β€” yes that's literally the whole header, we're not doing the boring double-title thing here, we're doing vibes.


✨ NAME ✨

BLAS/SRC/sasum.f β€” it's giving "one file, one legendary little routine". πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

Functions/Subroutines

  • real function sasum (n, sx, incx) β€” the whole thing. that's her. that's the function. she's called SASUM. πŸ’…

🌸 Function/Subroutine Documentation 🌸

real function sasum (integer n, real, dimension(*) sx, integer incx)

SASUM β€” no cap, she's the one doing the absolute-value summing. 🫢

Purpose:

SASUM takes the sum of the absolute values. uses unrolled loops for increment equal to one.

literally: abs everything, then add it all up. and when INCX equals one, she switches to the unrolled-loops era because she's efficient like that. πŸ‘‘

Parameters

  • N β€” N is INTEGER. number of elements in input vector(s). it's the headcount bestie, how many things are we looking at.
  • SX β€” SX is REAL array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). the actual vector we're vibing with, and yes the size formula is exactly that, don't come for me.
  • INCX β€” INCX is INTEGER. storage spacing between elements of SX. basically how far apart the elements are sitting from each other in memory β€” the stride, the walk, the little skip. πŸ¦‹

Author

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

all four of them, holding hands, taking credit. iconic. πŸ’œ

Further Details:

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

so she's got history β€” 1978 origin story, then a 3/93 glow-up where she bails out early if incx .le. 0., then a 12/3/93 makeover where the array(1) declarations became array(*). character development fr fr. 🌈

Definition at line 71 of file sasum.f.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for LAPACK from the source code.

(not a human author, a robot did this, and honestly? she ate. πŸ€–βœ¨)


and that's the page, bestie β€” Version 3.12.0, Tue Nov 28 2023 12:08:41, BLAS/SRC/sasum.f(3) β€” go forth and sum your absolute values, ily, bye πŸ’–πŸŽ€πŸ¦‹