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 calledSASUM. π
πΈ 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βNisINTEGER. number of elements in input vector(s). it's the headcount bestie, how many things are we looking at.SXβSXisREALarray, 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βINCXisINTEGER. storage spacing between elements ofSX. 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 πππ¦
π¦ 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