asum(3)
β¨ asum(3) β¨ β the LAPACK page where we sum up absolute values π
okay so bestie, this is a page from section 3 of the library manual (that's the (3) in asum(3), iykyk), and it's giving "four little functions that all do the same iconic thing but for different types" energy. no cap, it's a classic. let's get into it π
πΈ NAME πΈ
asum β asum: sum | real( x_i ) | + | imag( x_i ) |
literally that's the whole vibe: add up absolute values. β¨
π SYNOPSIS π
Functions
double precision function dasum (n, dx, incx)β DASUMdouble precision function dzasum (n, zx, incx)β DZASUMreal function sasum (n, sx, incx)β SASUMreal function scasum (n, cx, incx)β SCASUM
Detailed Description
(that's it, that's the whole detailed description section β she's mysterious, she's minimal, she's a main character π)
π Function Documentation π
π₯ double precision function dasum (integer n, double precision, dimension(*) dx, integer incx)
DASUM
Purpose:
!>
!> DASUM takes the sum of the absolute values.
!>
Parameters
N
!> N is INTEGER
!> number of elements in input vector(s)
DX
!> DX is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCX ) )
INCX
!> INCX is INTEGER
!> storage spacing between elements of DX
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(*)
!>
Definition at line 70 of file dasum.f.
π¦ double precision function dzasum (integer n, complex*16, dimension(*) zx, integer incx)
DZASUM
Purpose:
!>
!> DZASUM takes the sum of the (|Re(.)| + |Im(.)|)'s of a complex vector and
!> returns a double precision result.
!>
Parameters
N
!> N is INTEGER
!> number of elements in input vector(s)
ZX
!> ZX is COMPLEX*16 array, dimension ( 1 + ( N - 1 )*abs( INCX ) )
INCX
!> INCX is INTEGER
!> storage spacing between elements of ZX
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Further Details:
!>
!> jack dongarra, 3/11/78.
!> modified 3/93 to return if incx .le. 0.
!> modified 12/3/93, array(1) declarations changed to array(*)
!>
Definition at line 71 of file dzasum.f.
β real function sasum (integer n, real, dimension(*) sx, integer incx)
SASUM
Purpose:
!>
!> SASUM takes the sum of the absolute values.
!> uses unrolled loops for increment equal to one.
!>
(okay the unrolled loops for increment equal to one? that's her flex, she's fast π )
Parameters
N
!> N is INTEGER
!> number of elements in input vector(s)
SX
!> SX is REAL array, dimension ( 1 + ( N - 1 )*abs( INCX ) )
INCX
!> INCX is INTEGER
!> storage spacing between elements of SX
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(*)
!>
Definition at line 71 of file sasum.f.
π 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.
!>
Parameters
N
!> N is INTEGER
!> number of elements in input vector(s)
CX
!> CX is COMPLEX array, dimension ( 1 + ( N - 1 )*abs( INCX ) )
INCX
!> INCX is INTEGER
!> storage spacing between elements of SX
ngl bestie, that last one saysSXeven though this function's array isCXβ that's literally what the page says, so that's what you get. not me editing the sacred text π
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(*)
!>
Definition at line 71 of file scasum.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
and that's the whole page, bestie β every flag, every parameter, every !> comment, every jack dongarra credit, all of it, untouched and iconic π«Ά
LAPACK β Version 3.12.0 Β· that's the footer energy, periodt. go sum something absolute and slay πβ¨π
π¦ 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