/home/abui...C/scasum.f(3)
πΈ 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 line71of filescasum.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
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms