BLAS/SRC/scasum.f(3)

πŸ’– NAME πŸ’–

BLAS/SRC/scasum.f β€” bestie, you have arrived at the source file itself, and it's serving absolutely iconic "sum of absolute values" energy ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

Functions/Subroutines

real function scasum (n, cx, incx)

SCASUM β€” that's her, that's the moment πŸ‘‘


🌸 Function/Subroutine Documentation 🌸

real function scasum (integer n, complex, dimension(*) cx, integer incx)

SCASUM

✨ Purpose ✨

Okay so literally what SCASUM does is: it 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 gig, and she eats every single time πŸ’…

πŸŽ€ Parameters πŸŽ€

  • N β€” N is INTEGER. It's the number of elements in your input vector(s), bestie. The headcount. The guest list 🫢
  • CX β€” CX is COMPLEX array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). Yes, the dimension expression is exactly that, no cap, write it down exactly like that.
  • INCX β€” INCX is INTEGER. It's the storage spacing between elements of SX β€” like how far apart the girlies are standing in the array 🌈

πŸ‘‘ Author πŸ‘‘

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

πŸ’œ 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(*)

Look at that little history lesson, the lore is real, the character development is unmatched 😭✨

Definition at line 71 of file scasum.f.


⭐ Author ⭐

Generated automatically by Doxygen for LAPACK from the source code. She's a bot-written queen and we respect her πŸ™ˆ


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

That's the whole page bestie, version 3.12.0, stamped Tue Nov 28 2023 12:08:41, filed under BLAS/SRC/scasum.f(3) β€” go forth and sum those absolute real and imaginary parts, mwah πŸ’–πŸ§šπŸ’