sum1(3)
okay so bestie, this is sum1(3) from the Library Functions Manual โ LAPACK's whole little absolute-value situation, and honestly? It's giving "two functions, one very specific math vibe" ๐โจ.
๐ NAME ๐
sum1 โ sum1: sum | x_i | (in LAPACK)
That's the name, no notes ๐ .
โจ SYNOPSIS โจ
๐ Functions ๐
double precision function dzsum1 (n, cx, incx)โ DZSUM1 forms the 1-norm of the complex vector using the true absolute value. Double precision baddie, literally.real function scsum1 (n, cx, incx)โ SCSUM1 forms the 1-norm of the complex vector using the true absolute value. Single precision version, same iconic energy.
๐ธ DETAILED DESCRIPTION ๐ธ
okay so the detailed description is lowkey just "scroll down, bestie, the functions are right there" ๐. No extra lore in the original, so we're not inventing any. The function docs are below ๐
๐ FUNCTION DOCUMENTATION ๐
๐ double precision function dzsum1 (integer n, complex*16, dimension( * ) cx, integer incx)
DZSUM1 forms the 1-norm of the complex vector using the true absolute value. It's the double precision girlie, and she's here to do exactly that.
๐ฏ Purpose
DZSUM1takes the sum of the absolute values of a complex vector and returns a double precision result. Based onDZASUMfrom the Level 1 BLAS. The change is to use the 'genuine' absolute value.
๐งฎ Parameters
NโN is INTEGER. It's the number of elements in the vectorCX.CXโCX is COMPLEX*16 array, dimension (N). It's the vector whose elements will be summed.INCXโINCX is INTEGER. It's the spacing between successive values ofCX.INCX > 0.
๐ Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
๐ซถ Contributors
Nick Higham for use with ZLACON.
Definition at line 80 of file dzsum1.f.
๐ real function scsum1 (integer n, complex, dimension( * ) cx, integer incx)
SCSUM1 forms the 1-norm of the complex vector using the true absolute value. Single precision, same assignment.
๐ฏ Purpose
SCSUM1takes the sum of the absolute values of a complex vector and returns a single precision result. Based onSCASUMfrom the Level 1 BLAS. The change is to use the 'genuine' absolute value.
๐งฎ Parameters
NโN is INTEGER. It's the number of elements in the vectorCX.CXโCX is COMPLEX array, dimension (N). It's the vector whose elements will be summed.INCXโINCX is INTEGER. It's the spacing between successive values ofCX.INCX > 0.
๐ Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
๐ซถ Contributors
Nick Higham for use with CLACON.
Definition at line 80 of file scsum1.f.
๐ฆ AUTHOR ๐ฆ
Generated automatically by Doxygen for LAPACK from the source code.
okay bestie, that's the whole page ๐. Signing off with LAPACK Version 3.12.0, page sum1(3) โ stay slay, keep your INCX > 0, and remember: true absolute value only ๐
โจ.
๐ฆ 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