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 β€” N is INTEGER. it's the number of elements in the input vector(s). literally how many things she's summing, bestie ✨
  • CX β€” CX is COMPLEX array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). this is the vector itself, the main character of the whole operation 🌟
  • INCX β€” INCX is INTEGER. it's the storage spacing between elements of SX (yes, the manpage says SX, 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