/home/abui...C/scasum.f(3)

πŸ“¦ version 3.12.0, in opensuse-leap 16.0

🌸 NAME 🌸

/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/BLAS/SRC/scasum.f

like, that's the whole path bestie, that's literally the file πŸ’… (yes it's a Fortran source file, yes the whole path is the name, don't @ me, that's just how Doxygen do)


✨ SYNOPSIS ✨

πŸŽ€ Functions/Subroutines

  • real function SCASUM (n, cx, incx) β€” SCASUM 🫢

πŸ”₯ Function/Subroutine Documentation πŸ”₯

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

SCASUM ⭐

πŸ’– Purpose:

!>
!>    SCASUM takes the sum of the (|Re(.)| + |Im(.)|)'s of a complex vector and
!>    returns a single precision result.
!>

okay so real talk: you hand SCASUM a complex vector, it goes through every element, takes the absolute value of the real part plus the absolute value of the imaginary part, adds all of that up, and hands you back a single precision result. it's giving "sum of absolute values of real and imaginary parts" energy, no cap πŸ‘‘

🌈 Parameters

  • N
!>          N is INTEGER
!>         number of elements in input vector(s)
!>

it's the count! how many elements are in your input vector(s). INTEGER, obviously πŸ’œ

  • CX
!>          CX is COMPLEX array, dimension ( 1 + ( N - 1 )*abs( INCX ) )
!>

the complex array itself, and its dimension is literally ( 1 + ( N - 1 )*abs( INCX ) ) β€” yes that's the formula, yes you need INCX for it, keep reading bestie πŸ¦‹

  • INCX
!>          INCX is INTEGER
!>         storage spacing between elements of SX
!>

INTEGER, and it's the storage spacing between elements of SX β€” like how far apart your elements are chillin' in memory πŸŽ€

πŸ‘‘ Author

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

the whole squad, fr fr 🫢

🧚 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(*)
!>

history lesson time πŸ’€ β€” jack dongarra, linpack, 3/11/78. then it got modified 3/93 to return if incx .le. 0 (so like, if INCX is zero or negative, it just returns, periodt). then modified 12/3/93, where the array(1) declarations got changed to array(*) ✨

Definition at line 71 of file scasum.f.

⭐ Author

Generated automatically by Doxygen for LAPACK from the source code. (not a human, a robot did this, and honestly? it ate πŸ€–πŸ’…)


LAPACK β€” Version 3.12.0 πŸ¦‹

and that's the whole page bestie, mwah πŸ’‹βœ¨ go sum some complex vectors, you've got this 🫢🌸

πŸ“¦ where this page comes from