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

DZSUM1 takes the sum of the absolute values of a complex vector and returns a double precision result. Based on DZASUM from 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 vector CX.
  • 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 of CX. 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

SCSUM1 takes the sum of the absolute values of a complex vector and returns a single precision result. Based on SCASUM from 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 vector CX.
  • 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 of CX. 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