BLAS/SRC/scasum.f(3)
π BLAS/SRC/scasum.f β bestie's guide to summing absolute values β¨
okay so picture this: it's a manual page from BLAS/SRC/scasum.f, and honestly? it's giving "small file, big personality" π
β¨ SYNOPSIS β¨
functions & subroutines π¦
real function scasum (n, cx, incx)
SCASUM β the whole reason we're here, and she's iconic π
function/subroutine documentation π
real function scasum (integer n, complex, dimension(*) cx, integer incx)
SCASUM β yeah, same girl, just with her full government name and type declarations, periodt.
πΈ PURPOSE πΈ
so like, SCASUM takes the sum of the (|Re(.)| + |Im(.)|)'s of a complex vector and returns a single precision result. that's it. that's the whole job. no cap, she just adds up absolute real parts plus absolute imaginary parts across your vector and hands you back one single-precision number π
π«Ά PARAMETERS π«Ά
NβNisINTEGER. it's the number of elements in the input vector(s). literally how many things she's summing, bestie β¨CXβCXisCOMPLEX array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). this is the vector itself, the main character of the whole operation πINCXβINCXisINTEGER. it's the storage spacing between elements ofSX(yes, the manpage saysSX, we don't make the rules, we just report them π). basically how far apart consecutive elements sit in memory.
π AUTHOR π
the whole squad behind this one:
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
absolute legends, every single one π
π FURTHER DETAILS π
real ones, the lore:
!> 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 jack dongarra, linpack, 3/11/78 β the origin story π±. then modified 3/93 so it returns early if incx .le. 0 (self-care queen, she protects her own time π§). and modified 12/3/93, where the array(1) declarations got changed to array(*) β glow-up, honestly π
β DEFINITION β
defined at line 71 of file scasum.f. iykyk π₯
π AUTHOR (the Doxygen one) π
generated automatically by Doxygen for LAPACK from the source code. not hand-written, not handwritten by a person who loves you β machine-generated and still managing to slay π€β¨
okay bestie, that's the page! π this little masterpiece is from the LAPACK Version 3.12.0 manual, dated up there in the footer as BLAS/SRC/scasum.f(3) β go forth and sum those absolute values with your whole chest ππ¦
π¦ 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