BLAS/SRC/dasum.f(3)

πŸŽ€ okay bestie, BLAS time πŸŽ€

This is the Library Functions Manual page for BLAS/SRC/dasum.f(3), and it’s lowkey iconic because it’s all about one little double precision function doing absolute-value math. πŸ’…βœ¨


πŸ’– NAME πŸ’–

BLAS/SRC/dasum.f β€” that’s the name, bestie. It’s giving β€œI live in the BLAS directory and I know it.” πŸ¦‹


✨ SYNOPSIS ✨

🌸 Functions/Subroutines 🌸

  • double precision function dasum (n, dx, incx) β€” this is the DASUM function, coming through with main character energy. πŸ‘‘

πŸ¦‹ Function/Subroutine Documentation πŸ¦‹

Here’s the full signature, no cap:

double precision function dasum (integer n, double precision, dimension(*)
       dx, integer incx)

It is DASUM, periodt. πŸ’«

πŸŽ€ Purpose: πŸŽ€

The purpose is literally this: DASUM takes the sum of the absolute values. That’s it, that’s the whole vibe.

The original Fortran doc block wraps it in !> comment markers like this:

!>
!>    DASUM takes the sum of the absolute values.
!>

πŸ“ Parameters πŸ“

  • N β€” N is INTEGER, and it’s the number of elements in input vector(s). So it’s the count bestie, the amount, the β€œhow many are we doing here.” πŸ”’
  • DX β€” DX is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). That dimension expression is ( 1 + ( N - 1 )*abs( INCX ) ), exactly, no edits. 🫢
  • INCX β€” INCX is INTEGER, and it’s the storage spacing between elements of DX. So it controls the stride situation. 🧚

🧚 Author 🧚

The function’s author section lists these absolute legends:

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

πŸ’œ Further Details: πŸ’œ

The further-details lore is exactly this, preserved in all its Fortran-comment glory:

!>
!>     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. πŸ“


πŸ‘‘ Author πŸ‘‘

This page is Generated automatically by Doxygen for LAPACK from the source code. So yes, it’s auto-generated, but we’re still giving it a personality. 😌✨


πŸ’– cute little sign-off: this page’s footer energy is LAPACK, Version 3.12.0, and page BLAS/SRC/dasum.f(3). The original footer doesn’t give a date, so I’m not inventing one β€” no cap. 🫢🌈

πŸ“¦ where this page comes from